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

May 6, 2019
2:29 p.m.
Serhiy Storchaka <storchaka+cpython@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@bugs.python.org> <https://bugs.python.org/issue33039> _______________________________________
2208
Age (days ago)
2208
Last active (days ago)
0 comments
1 participants
participants (1)
-
Serhiy Storchaka