Message141387
You aren't using a regex to replace the quotes, either.
>>> len('abcd'.translate(str.maketrans('', '', string.ascii_letters ))) > 0
False
I don't know if this is faster than the corresponding search regex, but depending on how much overhead regex has, it might be. Note that the translate table can be pre-built, just like the compiled regex. |
|
Date |
User |
Action |
Args |
2011-07-29 15:20:13 | r.david.murray | set | recipients:
+ r.david.murray, georg.brandl, vstinner, eric.smith, ezio.melotti, eric.araujo, brandon-rhodes, anacrolix, xuanji, python-dev |
2011-07-29 15:20:13 | r.david.murray | set | messageid: <1311952813.69.0.67825707355.issue9723@psf.upfronthosting.co.za> |
2011-07-29 15:20:13 | r.david.murray | link | issue9723 messages |
2011-07-29 15:20:13 | r.david.murray | create | |
|