[issue47023] re.sub shows key error on regex escape chars provided in repl param

Eric V. Smith report at bugs.python.org
Thu Mar 17 17:04:27 EDT 2022


Eric V. Smith <eric at trueblade.com> added the comment:

Yes, I assume that's what the OP intended, but then stumbled across the error with '\s'.

In any event, I don't think there's a bug here so I'm going to close this. @siddheshsathe: if you disagree, please respond here.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: enhancement -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue47023>
_______________________________________


More information about the Python-bugs-list mailing list