[issue18961] Non-UTF8 encoding line

Martin v. Löwis report at bugs.python.org
Mon Sep 16 18:44:24 CEST 2013


Martin v. Löwis added the comment:

Terry: the comment isn't self-contradictory. Instead, the file constitutes a perfectly fine iso-8859-15 byte sequence (albeit a meaningless one: any byte sequence is perfectly fine iso-8559-15, and, in a comment, any characters are allowed by the Python syntax).

AFAICT, the file also follows the wording of PEP 263, as it does not disallow additional text on the encoding line. Therefore, I think tokenize should accept the file.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18961>
_______________________________________


More information about the Python-bugs-list mailing list