Armin Rigo <[email protected]> added the comment:

Note that a similar issue was closed as invalid about comment lines that contain
null bytes, which CPython handles highly inconsistently.

This issue here is arguably more important, although I'm unsure how including
binary data in a .py file with a specific encoding is supposed to work.  I guess
it works just because, by chance, the iso8859-1 encoding accepts any character
sequence.  If you replaced "iso8859-1" with, say, "utf8", then the example gives
a SyntaxError on CPython and all versions of PyPy.

----------
nosy: +arigo

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1762>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to