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

Raymond Hettinger report at bugs.python.org
Sat Nov 5 23:17:33 CET 2011

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

The API in 2.7 shouldn't be changed.
The error message can be fixed though.

Also, it is not clear that the API should change even in 3.3.  The list.index() method is not required to accept None.  It is not different than other APIs that use PyArg_ParseTuple() with an "i" field for a start, stop, or step argument.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list