[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-
OPi
report at bugs.python.org
Sat Feb 22 20:20:15 CET 2014
New submission from OPi:
The test program:
#!/usr/bin/env python
# -*- coding: latin-1 -*-
print('test')
is correct in Python 3.3.3, but cause this error with Python 3.3.4:
File "./test.py", line 3
-
^
SyntaxError: invalid syntax
I use Windows 7, with bash (of Cygwin) and
Python 3.3.4 (v3.3.4:7ff62415e426, Feb 10 2014, 18:13:51) [MSC v.1600 64 bit (AMD64)] on win32
----------
components: Interpreter Core
files: test.py
messages: 211942
nosy: OPi
priority: normal
severity: normal
status: open
title: Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-
type: compile error
versions: Python 3.3
Added file: http://bugs.python.org/file34190/test.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20731>
_______________________________________
More information about the Python-bugs-list
mailing list