[issue28298] can't set big int-like objects to items in array 'Q', 'L' and 'I'

Mark Dickinson report at bugs.python.org
Thu Sep 29 04:10:51 EDT 2016


Mark Dickinson added the comment:

One comment here: it's not the presence of `__int__` that makes a type integer-like; it's the presence of `__index__`. (Decimal and float both supply `__int__`, but shouldn't be regarded as integer-like, for example.) I'm guessing that we're going to have the same issues with `__index__` in place of `__int__`, though.

----------

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


More information about the Python-bugs-list mailing list