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 marco.buttu
Recipients Jim Fasarakis-Hilliard, Mariatta, docs@python, marco.buttu, rhettinger
Date 2017-01-30.10:17:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485771443.4.0.133643776315.issue29381@psf.upfronthosting.co.za>
In-reply-to
Content
The patch LGTM. I think there is just one type (see review). 

By the way, looking at the PEP 0263, the sentence "To define a source code encoding, a magic comment must be placed into the source files either as first or second line in the file" actually is not true. Also because I did not see any point in the PEP that clarifies that the fist line has to be a comment. Maybe it could be deduced by the examples (all using the shebang), but maybe not, and the user could think this is a valid declaration:

print('très jolie')
# -*- coding: ascii -*-

If you think is worth to clarify, I open an issue with a patch for the PEP 0263.
History
Date User Action Args
2017-01-30 10:17:23marco.buttusetrecipients: + marco.buttu, rhettinger, docs@python, Jim Fasarakis-Hilliard, Mariatta
2017-01-30 10:17:23marco.buttusetmessageid: <1485771443.4.0.133643776315.issue29381@psf.upfronthosting.co.za>
2017-01-30 10:17:23marco.buttulinkissue29381 messages
2017-01-30 10:17:23marco.buttucreate