[docs] [issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie)
Manuel Jacob
report at bugs.python.org
Tue Feb 24 14:38:34 CET 2015
Manuel Jacob added the comment:
Maybe I'm missing something, but it seems to me that test_int_subclass_with_index() is testing for the exactly wrong behaviour. Isn't the point of this issue that operator.index(a) should be equal to a.__index__()? Why are the tests checking that they are different?
----------
nosy: +mjacob
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17576>
_______________________________________
More information about the docs
mailing list