[issue3756] re.escape() does not work with bytes()

Andrew McNamara report at bugs.python.org
Mon Sep 8 04:12:55 CEST 2008


Andrew McNamara <andrewm at object-craft.com.au> added the comment:

I meant "I can certainly imagine use cases..."

In case it's not clear, I think the implementation in the patch is 
"good enough" (unless someone can suggest any obvious optimisations).

If someone can prove that re.escape() performance is causing problems 
for other modules in the standard lib (email, ctypes, warnings, 
fnmatch, _strptime use it, among others), then we might consider a C 
implementation.

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3756>
_______________________________________


More information about the Python-bugs-list mailing list