[issue13340] list.index does not accept None as start or stop

Raymond Hettinger report at bugs.python.org
Sun Nov 6 18:18:06 CET 2011


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

One other thought:  the API for list.index() doesn't exist in isolation.  There is also str.index, the sequence abstract base class, and tons of code that has been written to emulate lists.  This is an ancient API (approx 20 years) and should only be changed with care.

IOW, I don't think this change should have been made at all, at least not without a discussion on python-dev and motivating use cases.

----------
priority: normal -> high
resolution: fixed -> 

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13340>
_______________________________________


More information about the Python-bugs-list mailing list