[docs] [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>

More information about the docs mailing list