[issue12216] future imports change the reporting of syntaxerrors

2011-05-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset fefca6548732 by Benjamin Peterson in branch 'default': don't restrict unexpected EOF errors to the first line (closes #12216) http://hg.python.org/cpython/rev/fefca6548732 -- nosy: +python-dev resolution: -> fixed stage: -> committed/reje

[issue12216] future imports change the reporting of syntaxerrors

2011-05-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: Actually anything before the last statement will cause this >>> compile("\ndef foo(", '', 'exec') Traceback (most recent call last): File "", line 1, in File "", line 2 def foo( ^ SyntaxError: invalid syntax -- _

[issue12216] future imports change the reporting of syntaxerrors

2011-05-30 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12216] future imports change the reporting of syntaxerrors

2011-05-30 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt : >>> compile('def foo(', '', 'exec') Traceback (most recent call last): File "", line 1, in File "", line 1 def foo( ^ SyntaxError: unexpected EOF while parsing vs >>> compile('from __future__ import print_function\ndef foo(', '', 'exec