homepage

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 r.david.murray
Recipients barry, ezio.melotti, loewis, nadeem.vawda, orsenthil, r.david.murray, rosslagerwall, serhiy.storchaka
Date 2012年09月19日.20:19:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348085977.63.0.299625841549.issue11454@psf.upfronthosting.co.za>
In-reply-to
Content
This issue may be about reducing the startup time, but this function is a hot spot in the email package so I would prefer to sacrifice startup time optimization for an increase in speed.
However, given the improvements to import locking in 3.3, what about a self replacing function?
def _has_surrogates(s):
 import email.utils
 f = re.compile('[\udc80-\udcff]').search
 email.utils._has_surrogates = f
 return f(s)
History
Date User Action Args
2012年09月19日 20:19:37r.david.murraysetrecipients: + r.david.murray, loewis, barry, orsenthil, nadeem.vawda, ezio.melotti, rosslagerwall, serhiy.storchaka
2012年09月19日 20:19:37r.david.murraysetmessageid: <1348085977.63.0.299625841549.issue11454@psf.upfronthosting.co.za>
2012年09月19日 20:19:37r.david.murraylinkissue11454 messages
2012年09月19日 20:19:36r.david.murraycreate

AltStyle によって変換されたページ (->オリジナル) /