[issue36048] Deprecate implicit truncating when convert Python numbers to C integers: use __index__, not __int__

Serhiy Storchaka report at bugs.python.org
Mon Feb 25 10:58:03 EST 2019


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


New changeset 6a44f6eef3d0958d88882347190b3e2d1222c2e9 by Serhiy Storchaka in branch 'master':
bpo-36048: Use __index__() instead of __int__() for implicit conversion if available. (GH-11952)
https://github.com/python/cpython/commit/6a44f6eef3d0958d88882347190b3e2d1222c2e9


----------

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


More information about the Python-bugs-list mailing list