[issue17426] \0 in re.sub substitutes to space
anatoly techtonik
report at bugs.python.org
Fri Mar 15 18:24:33 CET 2013
anatoly techtonik added the comment:
Amaury, the documentation could make it more clear that it is a double replacement. Of course I payed attention to the repeated instructions about string substitution, but I thought that it is just a reminder, not an extra processing layer on top of standard string processing logic. Currently it reads like:
...if it is a string, any backslash escapes in it are processed. That is, \n is...
The correct text would be like:
...if it is a string, any backslash escapes in it are processed in addition to standard string escapes. That is, \n is... ... Note that re.sub backslash processing for replacement string occurs even if the raw strings.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17426>
_______________________________________
More information about the Python-bugs-list
mailing list