[issue32912] Raise non-silent warning for invalid escape sequences

Serhiy Storchaka report at bugs.python.org
Sat Feb 24 16:32:40 EST 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

PR 5849 changes not only the Python parser, but codecs. It shouldn't. The Python parser and codecs will go different ways. The warning in the Python parser will finally be upgraded to SyntaxError (it is already replaced with SyntaxError if the warning is raised as error). The warning in codecs will become UnicodeDecodeError or ValueError. This is why the code for emitting the warning is not shared between the parser and codecs at first place.

----------

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


More information about the Python-bugs-list mailing list