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 serhiy.storchaka
Recipients loewis, serhiy.storchaka
Date 2013-09-07.13:11:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378559493.77.0.649785663787.issue18960@psf.upfronthosting.co.za>
In-reply-to
Content
When run in Python 3 followed script:

print('first')
#coding=iso8859-1
print('second')

it prints the 'first' string twice.

Besides this weird behavior I think PEP-0263 should specify that if a magic comment is second line in the file then first line should be a comment too.
History
Date User Action Args
2013-09-07 13:11:33serhiy.storchakasetrecipients: + serhiy.storchaka, loewis
2013-09-07 13:11:33serhiy.storchakasetmessageid: <1378559493.77.0.649785663787.issue18960@psf.upfronthosting.co.za>
2013-09-07 13:11:33serhiy.storchakalinkissue18960 messages
2013-09-07 13:11:33serhiy.storchakacreate