[issue36048] Deprecate implicit truncating when convert Python numbers to C integers: use __index__, not __int__
Rémi Lapeyre
report at bugs.python.org
Wed Feb 20 12:14:30 EST 2019
Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:
> I am not sure what to with the int constructor. Should it try __index__ before __int__? Or just make __index__ without __int__ setting the nb_int slot as was proposed by Nick in issue33039?
Shouldn't it try only __int__ since this will default to __index__ once #33039 is closed?
----------
nosy: +remi.lapeyre
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36048>
_______________________________________
More information about the Python-bugs-list
mailing list