Message12522
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'' |
|
Date |
User |
Action |
Args |
2019-05-15 10:43:09 | adamburke | set | messageid: <1557916989.93.0.366038495516.issue2007@roundup.psfhosted.org> |
2019-05-15 10:43:09 | adamburke | set | recipients:
+ adamburke, fwierzbicki, irmen, jaraco, zyasoft, pjac, CecilWesterhof |
2019-05-15 10:43:09 | adamburke | link | issue2007 messages |
2019-05-15 10:43:09 | adamburke | create | |
|