[Python-Dev] timsort for jython

Aahz aahz@pythoncraft.com
Mon, 5 Aug 2002 12:30:36 -0400


On Mon, Aug 05, 2002, Guido van Rossum wrote:
>Tim Peters:
>>
>> BTW, list.sort() is stable in CPython iff
>> 
>>     [].sort.__doc__.find('stable')
>> 
>> is true.
> 
> Um, you meant "is >= 0".  The find() method doesn't return a bool, it
> returns the first index where the string is found, and -1 if it is not
> found.

Which only goes to prove that the people who've been whining about that
characteristic of find() were right all along.  ;-)
-- 
Aahz (aahz@pythoncraft.com)           <*>         http://www.pythoncraft.com/

Project Vote Smart: http://www.vote-smart.org/