• Tim Peters's avatar
    PyLong_FromString(): Continued fraction analysis (explained in · 9faa3eda
    Tim Peters yazdı
    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).
    9faa3eda
longobject.c 83.9 KB