[issue18712] Pure Python operator.index doesn't match the C version.

Serhiy Storchaka report at bugs.python.org
Sat Aug 17 10:29:29 CEST 2013


Serhiy Storchaka added the comment:

The difference doesn't look significant. In all cases the TypeError is raised.

But there was other differences between C and Python versions -- when __index__() returns non-integer. Updated patch fixes this.

----------
Added file: http://bugs.python.org/file31335/operator_index_2.patch

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


More information about the Python-bugs-list mailing list