[issue31619] Strange error when convert hexadecimal with underscores to int
Nitish
report at bugs.python.org
Fri Sep 29 12:45:11 EDT 2017
Nitish <nitishchandrachinta at gmail.com> added the comment:
>> PR 3816 fixes the symptom, but not the core issue -- an overflow check depending on undefined behaviour.
> I don't understand this check completely actually. When exactly is an int too large to convert?
We see if digits * bits_per_char + PyLong_SHIFT -1 overflows an int?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31619>
_______________________________________
More information about the Python-bugs-list
mailing list