[issue29226] Comment generates syntax error
Ammar Askar
report at bugs.python.org
Tue Jan 10 11:44:30 EST 2017
Ammar Askar added the comment:
This is because the "coding:" in a comment is a special syntax used to define the encoding of the file. The only documentation I could find for it on the official docs is a brief mention here: https://docs.python.org/3/howto/unicode.html#the-string-type
More details can be found on the PEP for it:
https://www.python.org/dev/peps/pep-0263/
The SyntaxError itself is not a bug, though I think the documentation for this feature is certainly a little sparse.
----------
nosy: +ammar2
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29226>
_______________________________________
More information about the Python-bugs-list
mailing list