Message170765
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) |
|
Date |
User |
Action |
Args |
2012-09-19 20:19:37 | r.david.murray | set | recipients:
+ r.david.murray, loewis, barry, orsenthil, nadeem.vawda, ezio.melotti, rosslagerwall, serhiy.storchaka |
2012-09-19 20:19:37 | r.david.murray | set | messageid: <1348085977.63.0.299625841549.issue11454@psf.upfronthosting.co.za> |
2012-09-19 20:19:37 | r.david.murray | link | issue11454 messages |
2012-09-19 20:19:36 | r.david.murray | create | |
|