[docs] [issue33039] int() and math.trunc don't accept objects that only define __index__

Serhiy Storchaka report at bugs.python.org
Mon May 6 10:29:29 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Then let to continue the discussion on the older issue which has larger discussion.

----------
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33039>
_______________________________________


More information about the docs mailing list