Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

Steven Bethard steven.bethard at gmail.com
Mon Aug 29 13:03:22 EDT 2005


Antoon Pardon wrote:
> I think a properly implented find is better than an index.

See the current thread in python-dev[1], which proposes a new method, 
str.partition().  I believe that Raymond Hettinger has shown that almost 
all uses of str.find() can be more clearly be represented with his 
proposed function.

STeVe

[1]http://mail.python.org/pipermail/python-dev/2005-August/055781.html



More information about the Python-list mailing list