Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue32912>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to