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 terry.reedy
Recipients benjamin.peterson, ezio.melotti, loewis, serhiy.storchaka, terry.reedy
Date 2013-09-13.17:24:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379093068.14.0.758472928339.issue18960@psf.upfronthosting.co.za>
In-reply-to
Content
I thought that that was the specification*: the encoding comment should be the first line unless it has to be the second line to allow for an executable comment. Executing a non-comment first line twice is definitely contrary to the intent of the PEP.

* I have not read it recently ;-).

When running that snippet from 3.3.2 Idle editor, 'first' is only printed once. I consider this to be correct and I would not want to change Idle to match the buggy behavior.
History
Date User Action Args
2013-09-13 17:24:28terry.reedysetrecipients: + terry.reedy, loewis, benjamin.peterson, ezio.melotti, serhiy.storchaka
2013-09-13 17:24:28terry.reedysetmessageid: <1379093068.14.0.758472928339.issue18960@psf.upfronthosting.co.za>
2013-09-13 17:24:28terry.reedylinkissue18960 messages
2013-09-13 17:24:27terry.reedycreate