Message9812
In Jython 2.7rc2, if the stdin is a pipe, the printing of the interactive prompts is not suppressed. This worked in 2.5:
$ echo 'print 1' | python2.7
1
$ echo 'print 1' | pypy
1
$ echo 'print 1' | jython2.5.4/bin/jython
1
$ echo 'print 1' | jython2.7rc2/bin/jython
>>> 1
>>>
$
(Both versions print an extra newline, but that's probably ok.)
Unfortunately, this breaks `tox`:
$ tox --version
1.9.2 imported from ...
$ tox -e jython
GLOB sdist-make: transaction/setup.py
jython create: transaction/.tox/jython
ERROR: InvocationError: Failed to get version_info for jython: could not decode ">>> ... ... ... >>> {'version_info': (2, 7, 0, 'candidate', 2)}\n>>> " |
|
Date |
User |
Action |
Args |
2015-04-13 19:24:58 | jmadden | set | recipients:
+ jmadden |
2015-04-13 19:24:58 | jmadden | set | messageid: <1428953098.86.0.712628500866.issue2325@psf.upfronthosting.co.za> |
2015-04-13 19:24:58 | jmadden | link | issue2325 messages |
2015-04-13 19:24:58 | jmadden | create | |
|