Message215054
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) ... |
|
Date |
User |
Action |
Args |
2014-03-28 15:48:48 | Morten.Z | set | recipients:
+ Morten.Z |
2014-03-28 15:48:48 | Morten.Z | set | messageid: <1396021728.2.0.00333249984382.issue21086@psf.upfronthosting.co.za> |
2014-03-28 15:48:48 | Morten.Z | link | issue21086 messages |
2014-03-28 15:48:47 | Morten.Z | create | |
|