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 ezio.melotti
Recipients barry, ezio.melotti, loewis, nadeem.vawda, orsenthil, r.david.murray, rosslagerwall, serhiy.storchaka
Date 2012-09-19.08:49:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348044597.65.0.0671540879274.issue11454@psf.upfronthosting.co.za>
In-reply-to
Content
> What about _has_surrogates = re.compile('[^\udc80-\udcff]*\Z').match ?

The runtime is a bit slower than re.compile('[\udc80-\udcff]').search, but otherwise it's faster than all the other alternatives.  I haven't checked the startup-time, but I suspect it won't be better -- maybe even worse.
History
Date User Action Args
2012-09-19 08:49:57ezio.melottisetrecipients: + ezio.melotti, loewis, barry, orsenthil, nadeem.vawda, r.david.murray, rosslagerwall, serhiy.storchaka
2012-09-19 08:49:57ezio.melottisetmessageid: <1348044597.65.0.0671540879274.issue11454@psf.upfronthosting.co.za>
2012-09-19 08:49:56ezio.melottilinkissue11454 messages
2012-09-19 08:49:56ezio.melotticreate