[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)
Mark Dickinson
report at bugs.python.org
Wed Dec 11 08:37:09 CET 2013
Mark Dickinson added the comment:
Yes, the PyLong_As... conversions are a mess. In theory, they should all use __index__ if available, and ignore __int__. In practice, it's a mess that's difficult to change without breaking things. I think there are already some other issues open on this subject.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17576>
_______________________________________
More information about the Python-bugs-list
mailing list