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

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


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

> There's still the question whether {list,tuple}.index() should accept None or not.

The API should not be changed for Py2.7 and Py3.2.  Those changesets should be reverted.

For Py3.3, it is open to discussion, but we probably don't need the change (making every other implementation also change for nearly zero benefit).

----------

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


More information about the Python-bugs-list mailing list