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 Morten.Z
Recipients Morten.Z
Date 2014-03-28.15:48:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396021728.2.0.00333249984382.issue21086@psf.upfronthosting.co.za>
In-reply-to
Content
Python 3.4 introduced a problem with use of

# -*- coding: ASCII -*-

so when running on Windows, the EOL must be Windows type, and else an error is generated.


See trials below:


C:\>Python34\python.exe hello_unix.py
  File "hello_unix.py", line 3
    II -*-
        ^
SyntaxError: invalid syntax


C:\>Python34\python.exe hello_win.py
Hello Python version 3.4.0 (v3.4.0:04f714765c13, Mar 16 2014, 19:24:06) ...


C:\>Python33\python.exe hello_unix.py
Hello Python version 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) ...


C:\>Python33\python.exe hello_win.py
Hello Python version 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) ...
History
Date User Action Args
2014-03-28 15:48:48Morten.Zsetrecipients: + Morten.Z
2014-03-28 15:48:48Morten.Zsetmessageid: <1396021728.2.0.00333249984382.issue21086@psf.upfronthosting.co.za>
2014-03-28 15:48:48Morten.Zlinkissue21086 messages
2014-03-28 15:48:47Morten.Zcreate