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 barry, ezio.melotti, loewis, nadeem.vawda, orsenthil, r.david.murray, rosslagerwall, serhiy.storchaka
Date 2012-09-19.08:32:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348043584.24.0.869560792961.issue11454@psf.upfronthosting.co.za>
In-reply-to
Content
> If I change the regex to _has_surrogates = re.compile('[\udc80-\udcff]').search, the tests still pass but there's no improvement on startup time (note: the previous regex was matching all the surrogates in this range too, however I'm not sure how well this is tested).

What about

  _has_surrogates = re.compile('[^\udc80-\udcff]*\Z').match

?
History
Date User Action Args
2012-09-19 08:33:10serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, barry, orsenthil, nadeem.vawda, ezio.melotti, r.david.murray, rosslagerwall
2012-09-19 08:33:04serhiy.storchakasetmessageid: <1348043584.24.0.869560792961.issue11454@psf.upfronthosting.co.za>
2012-09-19 08:32:57serhiy.storchakalinkissue11454 messages
2012-09-19 08:32:51serhiy.storchakacreate