<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_sort.py, branch v2.4b2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_sort.py?h=v2.4b2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_sort.py?h=v2.4b2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-07-29T12:40:23Z</updated>
<entry>
<title>* drop the unreasonable list invariant that ob_item should never come back</title>
<updated>2004-07-29T12:40:23Z</updated>
<author>
<name>Armin Rigo</name>
<email>arigo@tunes.org</email>
</author>
<published>2004-07-29T12:40:23Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=93677f075df9a23c036f4baeb2b9f67c784eadbc'/>
<id>urn:sha1:93677f075df9a23c036f4baeb2b9f67c784eadbc</id>
<content type='text'>
  to NULL during the lifetime of the object.

* listobject.c nevertheless did not conform to the other invariants,
  either; fixed.

* listobject.c now uses list_clear() as the obvious internal way to clear
  a list, instead of abusing list_ass_slice() for that.  It makes it easier
  to enforce the invariant about ob_item == NULL.

* listsort() sets allocated to -1 during sort; any mutation will set it
  to a value &gt;= 0, so it is a safe way to detect mutation.  A negative
  value for allocated does not cause a problem elsewhere currently.
  test_sort.py has a new test for this fix.

* listsort() leak: if items were added to the list during the sort, AND if
  these items had a __del__ that puts still more stuff into the list,
  then this more stuff (and the PyObject** array to hold them) were
  overridden at the end of listsort() and never released.
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2004-01-18T20:29:55Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-01-18T20:29:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=58eb11cf62dd04ccc2c364b62fd51b4265e2e203'/>
<id>urn:sha1:58eb11cf62dd04ccc2c364b62fd51b4265e2e203</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Guido grants a Christmas wish:</title>
<updated>2003-12-17T20:43:33Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-12-17T20:43:33Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=64958a15d7c03efdc3d2eddf247666e18d1fd910'/>
<id>urn:sha1:64958a15d7c03efdc3d2eddf247666e18d1fd910</id>
<content type='text'>
  sorted() becomes a regular function instead of a classmethod.
</content>
</entry>
<entry>
<title>Remove extra copy of test_key_with_exception that somehow appeared</title>
<updated>2003-12-04T11:41:24Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2003-12-04T11:41:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9da1efb5aead6795e63ea0660308a674f9ef4f37'/>
<id>urn:sha1:9da1efb5aead6795e63ea0660308a674f9ef4f37</id>
<content type='text'>
during a CVS merge.
</content>
</entry>
<entry>
<title>Fixes and tests for various "holding pointers when arbitrary Python code</title>
<updated>2003-12-04T11:25:46Z</updated>
<author>
<name>Michael W. Hudson</name>
<email>mwh@python.net</email>
</author>
<published>2003-12-04T11:25:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1df0f654e845ef7c1252db10b88066691807be5b'/>
<id>urn:sha1:1df0f654e845ef7c1252db10b88066691807be5b</id>
<content type='text'>
can run" bugs as discussed in

[ 848856 ] couple of new list.sort bugs
</content>
</entry>
<entry>
<title>Make sure the list.sort's decorate step unwinds itself before returning</title>
<updated>2003-11-28T21:43:02Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-11-28T21:43:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=37e136373e0d9ab3bdf25ecd9c42b86281ed21d3'/>
<id>urn:sha1:37e136373e0d9ab3bdf25ecd9c42b86281ed21d3</id>
<content type='text'>
an exception raised by the key function.
(Suggested by Michael Hudson.)
</content>
</entry>
<entry>
<title>* Migrate set() and frozenset() from the sandbox.</title>
<updated>2003-11-16T16:17:49Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-11-16T16:17:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a690a9967e715663b7a421c9ebdad91381cdf1e4'/>
<id>urn:sha1:a690a9967e715663b7a421c9ebdad91381cdf1e4</id>
<content type='text'>
* Install the unittests, docs, newsitem, include file, and makefile update.
* Exercise the new functions whereever sets.py was being used.

Includes the docs for libfuncs.tex.  Separate docs for the types are
forthcoming.
</content>
</entry>
<entry>
<title>Add list.sorted() classmethod.</title>
<updated>2003-10-29T06:54:43Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-10-29T06:54:43Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0a9b9da0c39eb74075cc93f7d7bd3b5dbcc25320'/>
<id>urn:sha1:0a9b9da0c39eb74075cc93f7d7bd3b5dbcc25320</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* list.sort() now supports three keyword arguments:  cmp, key, and reverse.</title>
<updated>2003-10-16T03:41:09Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-10-16T03:41:09Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=42b1ba31aff86af6257a0fca455d5569bce9d8fc'/>
<id>urn:sha1:42b1ba31aff86af6257a0fca455d5569bce9d8fc</id>
<content type='text'>
  key provides C support for the decorate-sort-undecorate pattern.
  reverse provide a stable sort of the list with the comparisions reversed.

* Amended the docs to guarantee sort stability.
</content>
</entry>
<entry>
<title>Allow list sort's comparison function to explicitly be None.  See SF patch</title>
<updated>2003-01-02T20:51:08Z</updated>
<author>
<name>Skip Montanaro</name>
<email>skip@pobox.com</email>
</author>
<published>2003-01-02T20:51:08Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4abd5f0fce54d32fbe01207e505047bd82ff9ca3'/>
<id>urn:sha1:4abd5f0fce54d32fbe01207e505047bd82ff9ca3</id>
<content type='text'>
661092.
</content>
</entry>
</feed>
