New submission from Ronny Pfannschmidt <ronny.pfannschm...@gmail.com>:
>>> compile('def foo(', '', 'exec') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "", line 1 def foo( ^ SyntaxError: unexpected EOF while parsing vs >>> compile('from __future__ import print_function\ndef foo(', '', 'exec') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "", line 2 def foo( ^ SyntaxError: invalid syntax ---------- messages: 137285 nosy: Ronny.Pfannschmidt priority: normal severity: normal status: open title: future imports change the reporting of syntaxerrors versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12216> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com