Martin Panter added the comment:
unicode.patch avoids an overflow in PyUnicode_Join():
>>> size = int(sys.maxsize**0.5) + 1
>>> "".join(("A" * size,) * size)
Objects/unicodeobject.c:9927:12: runtime error: signed integer overflow: 46341
+ 2147441940 cannot be represented in type 'int'
OverflowError: join() result is too long for a Python string
----------
Added file: http://bugs.python.org/file43856/unicode.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue1621>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com