[Python-3000] Droping find/rfind? (original) (raw)

Georg Brandl g.brandl at gmx.net
Wed Aug 23 21:36:50 CEST 2006


Paul Prescod wrote:

Just throwing it out but what about something like:

found, index = text.index("abc") if found: doSomething(index)

-1. str.index()'s semantics should not be different from list.index().

Georg



More information about the Python-3000 mailing list