Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

Please take this to Python ideas.  My understanding is that index() is supposed 
to be the one-way-to-do-it going forward.  The find() API proved to be 
problematic because -1 is a valid index and people were hitting bugs by failing 
to check for the -1 and then doing an unintended s[-1].

----------
nosy: +rhettinger
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40531>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to