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 anacrolix, brandon-rhodes, eric.araujo, eric.smith, ezio.melotti, georg.brandl, python-dev, r.david.murray, vstinner, xuanji
Date 2011-07-29.15:20:12
SpamBayes Score 0.0010799869
Marked as misclassified No
Message-id <1311952813.69.0.67825707355.issue9723@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-07-29 15:20:13r.david.murraysetrecipients: + r.david.murray, georg.brandl, vstinner, eric.smith, ezio.melotti, eric.araujo, brandon-rhodes, anacrolix, xuanji, python-dev
2011-07-29 15:20:13r.david.murraysetmessageid: <1311952813.69.0.67825707355.issue9723@psf.upfronthosting.co.za>
2011-07-29 15:20:13r.david.murraylinkissue9723 messages
2011-07-29 15:20:13r.david.murraycreate