New submission from Serhiy Storchaka: 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. ---------- components: Interpreter Core files: double_first_line.py messages: 197156 nosy: loewis, serhiy.storchaka priority: normal severity: normal status: open title: First line can be executed twice type: behavior versions: Python 3.3, Python 3.4 Added file: http://bugs.python.org/file31644/double_first_line.py _______________________________________ 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