[issue30133] Strings that end with properly escaped backslashes cause error to be thrown in re.search/sub/etc. functions.

Matthew Barnett report at bugs.python.org
Fri Apr 21 22:54:11 EDT 2017


Matthew Barnett added the comment:

The function solution does have a larger overhead than a literal.

Could the template be made more accepting of backslashes without breaking anything? (There's also issue29995 "re.escape() escapes too much", which might help.)

----------

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


More information about the Python-bugs-list mailing list