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

Serhiy Storchaka report at bugs.python.org
Fri May 10 08:03:37 CEST 2013


Serhiy Storchaka added the comment:

if (PyLong_CheckExact(item) || (PyLong_Check(item) &&
    item->ob_type->tp_as_number->nb_index == PyLong_Type.tp_as_number->nb_index))

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

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


More information about the docs mailing list