This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ammar2
Recipients ammar2, sgrantham
Date 2017-01-10.16:44:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484066670.64.0.340725373057.issue29226@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-01-10 16:44:30ammar2setrecipients: + ammar2, sgrantham
2017-01-10 16:44:30ammar2setmessageid: <1484066670.64.0.340725373057.issue29226@psf.upfronthosting.co.za>
2017-01-10 16:44:30ammar2linkissue29226 messages
2017-01-10 16:44:30ammar2create