[Python-ideas] Deprecate str.find

Larry Bugbee larry.bugbee at gmail.com
Wed Jul 20 08:51:35 CEST 2011


> Steven D'Aprano wrote:
> In my wishlist for Python 4000 I have:

and sooner would be nicer.

> * list.index renamed to list.find
> * str.find and list.find return None if the argument is not found

+1

...and forget throwing an exception if not found.  None is much preferred.







More information about the Python-ideas mailing list