[issue27556] Integer overflow on hex()

2016-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pytho

[issue27556] Integer overflow on hex()

2016-07-17 Thread Antti Haapala
Antti Haapala added the comment: Note that this has nothing to do with `hex()` function. The part that is problem here is 10**80, which takes ages to compute. You can interrupt it with Ctrl-C. -- nosy: +ztane ___ Python tracker

[issue27556] Integer overflow on hex()

2016-07-17 Thread pablo sacristan
New submission from pablo sacristan: There is an integer overflow on hex() because python incorrectly checks the length of the value to return overflow message if it were too big. hex(0xFFF+10**80) That line will freeze python until you restart it, which is the same thing