[New-bugs-announce] [issue31619] Strange error when convert hexadecimal with underscores to int
Serhiy Storchaka
report at bugs.python.org
Thu Sep 28 10:14:07 EDT 2017
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
>>> int('1_2_3_4_5_6_7_89', 16)
4886718345
>>> int('1_2_3_4_5_6_7_8_9', 16)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: int string too large to convert
----------
components: Interpreter Core
messages: 303240
nosy: georg.brandl, mark.dickinson, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Strange error when convert hexadecimal with underscores to int
versions: Python 3.6, Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31619>
_______________________________________
More information about the New-bugs-announce
mailing list