summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-05-30 15:53:34 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-05-30 15:53:34 (GMT)
commit9faa3eda6b767ddfae8ff2627d50edd6ad072490 (patch)
tree720cda8292308ce32c755e64038417d2fb22b958 /Lib
parent69fe4055a3124f77f6f13cea549ede3bfacca8b5 (diff)
downloadcpython-9faa3eda6b767ddfae8ff2627d50edd6ad072490.zip
cpython-9faa3eda6b767ddfae8ff2627d50edd6ad072490.tar.gz
cpython-9faa3eda6b767ddfae8ff2627d50edd6ad072490.tar.bz2
PyLong_FromString(): Continued fraction analysis (explained in
a new comment) suggests there are almost certainly large input integers in all non-binary input bases for which one Python digit too few is initally allocated to hold the final result. Instead of assert-failing when that happens, allocate more space. Alas, I estimate it would take a few days to find a specific such case, so this isn't backed up by a new test (not to mention that such a case may take hours to run, since conversion time is quadratic in the number of digits, and preliminary attempts suggested that the smallest such inputs contain at least a million digits).
Diffstat (limited to 'Lib')
0 files changed, 0 insertions, 0 deletions