This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients amaury.forgeotdarc, arigo, benjamin.peterson, eric.araujo, eric.smith, francismb, serhiy.storchaka
Date 2014-11-23.20:06:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1416773219.69.0.00247799566968.issue11145@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-11-23 20:06:59serhiy.storchakasetrecipients: + serhiy.storchaka, arigo, amaury.forgeotdarc, eric.smith, benjamin.peterson, eric.araujo, francismb
2014-11-23 20:06:59serhiy.storchakasetmessageid: <1416773219.69.0.00247799566968.issue11145@psf.upfronthosting.co.za>
2014-11-23 20:06:59serhiy.storchakalinkissue11145 messages
2014-11-23 20:06:59serhiy.storchakacreate