[docs] [issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)

Manuel Jacob report at bugs.python.org
Tue Feb 24 18:44:38 CET 2015


Manuel Jacob added the comment:

The tests in the attached patches (for example issue17576_v3.patch) check that both are 8, but the tests which were actually committed are checking that "my_int.__index__() == 8" and "operator.index(my_int) == 7".

----------

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


More information about the docs mailing list