[Python-3000] Droping find/rfind?

Jim Jewett jimjjewett at gmail.com
Thu Aug 24 03:10:40 CEST 2006

On 8/23/06, Terry Reedy <tjreedy at udel.edu> wrote:
> 2. change find()'s error return to None, and remove index();


It is particularly unfortunate that the error code of -1 is a valid index.

    >>> substring = string[string.find(marker):]

will silently produce garbage.

>  or possibly consider Josiah's idea of
> 3. remove both in favor of an index generator.

The strawman seemed clumsy, but maybe it will grow on me.


More information about the Python-3000 mailing list