Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

See also the discussion on the duplicated issue33039.

Few months ago I wrote the PR that makes constructors of int, float and complex 
to fall back to __index__ if corresponding special methods __int__, __float__ 
and __complex__ are not defined. I did not exposed it to public because binding 
__int__ to __index__ looks better to me. But perhaps some tests from that PR 
can be used in an alternate PR.

----------
components: +Interpreter Core
nosy: +serhiy.storchaka
versions: +Python 3.8 -Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue20092>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to