[Python-3000] Droping find/rfind? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Thu Aug 24 03:36:25 CEST 2006
- Previous message: [Python-3000] Droping find/rfind?
- Next message: [Python-3000] Droping find/rfind?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Josiah Carlson wrote:
Given search as a potential replacement, about the only question is whether count should default to sys.maxint or 1.
Do you think that there will be many use cases for count values other than 1 or sys.maxint? If not, it might be more sensible to have two functions, search() and searchall().
And while we're on this, what about list.index? Should it also be replaced with list.search or whatever as well?
-- Greg
- Previous message: [Python-3000] Droping find/rfind?
- Next message: [Python-3000] Droping find/rfind?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]