[issue20092] type() constructor should bind __int__ to __index__ when __index__ is defined and __int__ is not

Serhiy Storchaka report at bugs.python.org
Sat Jun 1 17:05:50 EDT 2019


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


New changeset bdbad71b9def0b86433de12cecca022eee91bd9f by Serhiy Storchaka in branch 'master':
bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108)
https://github.com/python/cpython/commit/bdbad71b9def0b86433de12cecca022eee91bd9f


----------

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


More information about the Python-bugs-list mailing list