Message12522

Author adamburke
Recipients CecilWesterhof, adamburke, fwierzbicki, irmen, jaraco, pjac, zyasoft
Date 2019-05-15.10:43:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557916989.93.0.366038495516.issue2007@roundup.psfhosted.org>
In-reply-to
Content
The standalone print operator should also cause a syntax error when using from __future__ import print_function. On the console it doesn't. -c and script works.

C:\Users\Adam\jython\jython6\jython>dist\bin\jython.exe
Jython 2.7.2a1+ (, May 14 2019, 12:59:32)
[OpenJDK 64-Bit Server VM (Oracle Corporation)] on java11.0.1
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import print_function
>>>
>>> print 'test'
test
>>>
C:\Users\Adam\jython\jython6\jython>dist\bin\jython.exe -c "from __future__ import print_function; print 'test' "
  File "<string>", line 1
    from __future__ import print_function; print 'test'
                                                ^
SyntaxError: no viable alternative at input ''test''
History
Date User Action Args
2019-05-15 10:43:09adamburkesetmessageid: <1557916989.93.0.366038495516.issue2007@roundup.psfhosted.org>
2019-05-15 10:43:09adamburkesetrecipients: + adamburke, fwierzbicki, irmen, jaraco, zyasoft, pjac, CecilWesterhof
2019-05-15 10:43:09adamburkelinkissue2007 messages
2019-05-15 10:43:09adamburkecreate