Terry J. Reedy added the comment:

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.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18960>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to