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

Serhiy Storchaka report at bugs.python.org
Mon Aug 12 21:43:38 CEST 2013


Serhiy Storchaka added the comment:

We can use type(a).__index__(a). Should we also correct the documentation for operator.index() and operator.length_hint()?

----------
nosy: +serhiy.storchaka

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


More information about the Python-bugs-list mailing list