<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_sort.py, branch v2.3.6</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_sort.py?h=v2.3.6</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_sort.py?h=v2.3.6'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-01-02T20:51:08Z</updated>
<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>
<entry>
<title>SF patch 637176: list.sort crasher</title>
<updated>2002-11-12T22:08:10Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-11-12T22:08:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b9099c3df495d4bf0090d7a751325343852b61db'/>
<id>urn:sha1:b9099c3df495d4bf0090d7a751325343852b61db</id>
<content type='text'>
Armin Rigo's Draconian but effective fix for

SF bug 453523: list.sort crasher

slightly fiddled to catch more cases of list mutation.  The dreaded
internal "immutable list type" is gone!  OTOH, if you look at a list
*while* it's being sorted now, it will appear to be empty.  Better
than a core dump.
</content>
</entry>
<entry>
<title>Remove cut 'n paste silliness.</title>
<updated>2002-08-03T02:17:41Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-08-03T02:17:41Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=30e0beab6dc66ae2f2c393041476bae32b953ccb'/>
<id>urn:sha1:30e0beab6dc66ae2f2c393041476bae32b953ccb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>New test for sorting sanity.  Note that this will fail in earlier Pythons,</title>
<updated>2002-08-01T02:23:06Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2002-08-01T02:23:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2d8b765cc958f06bc424ea43c6af890f652e1c4c'/>
<id>urn:sha1:2d8b765cc958f06bc424ea43c6af890f652e1c4c</id>
<content type='text'>
in the stability tests.

Bizarre:  this takes 11x longer to run if and only if test_longexp is
run before it, on my box.  The bigger REPS is in test_longexp, the
slower this gets.  What happens on your box?  It's not gc on my box
(which is good, because gc isn't a plausible candidate here).

The slowdown is massive in the parts of test_sort that implicitly
invoke a new-style class's __lt__ or __cmp__ methods.  If I boost
REPS large enough in test_longexp, even the test_sort tests on an array
of size 64 visibly c-r-a-w-l.  The relative slowdown is even worse in
a debug build.  And if I reduce REPS in test_longexp, the slowdown in
test_sort goes away.

test_longexp does do horrid things to Win98's management of user
address space, but I thought I had made that a whole lot better a month
or so ago (by overallocating aggressively in the parser).
</content>
</entry>
</feed>
