[Python-3000] Droping find/rfind? (original) (raw)
Georg Brandl g.brandl at gmx.net
Wed Aug 23 21:36:50 CEST 2006
- Previous message: [Python-3000] Droping find/rfind?
- Next message: [Python-3000] Droping find/rfind?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] Droping find/rfind?
- Next message: [Python-3000] Droping find/rfind?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]