Serhiy Storchaka added the comment:
Here is new patch. It first split string on areas: numnondigits (sign+"0x" if
F_ALT is not set), skipped ("0x" if F_ALT is set), numdigits and optional "L"
suffix, and then construct new string either in-place (if the string is not
shared and result fits in original string) or in new string. It uses not more
allocations than current code and should not add overhead for common cases.
----------
Added file: http://bugs.python.org/file37257/issue11145_4.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue11145>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com