[Python-Dev] timsort for jython
Guido van Rossum
guido@python.org
Mon, 05 Aug 2002 12:33:12 -0400
> > 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. ;-)
So what would you like it to return? True/False, with no possibility
of finding where the substring starts? That defeats a common use
case.
--Guido van Rossum (home page: http://www.python.org/~guido/)