Message11838
Still valid:
Jython 2.7.2a1+ (default:d74f8c2cd56f, Feb 24 2018, 17:18:53)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_151
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.stdout.close()
Exception in thread "main"
Exception: org.python.core.PyException thrown from the UncaughtExceptionHandler in thread "main"
It is as if the console ought to be a layer *below* sys.std[in|out|err] that could still talk when those Python channels are closed. At present, we issue the prompt *through* them, using raw_input(">>>").
In my thinking, this lower layer is also necessary so that multiple interpreters may have a sys.std[in|out|err] each, which any one of them could close independently, while others continue to support print() etc.. |
|
Date |
User |
Action |
Args |
2018-03-22 06:10:06 | jeff.allen | set | messageid: <1521699006.67.0.467229070634.issue695383@psf.upfronthosting.co.za> |
2018-03-22 06:10:06 | jeff.allen | set | recipients:
+ jeff.allen, fwierzbicki, amak, daishiharada, pjenvey, zyasoft, ssteiner, cjsimpson |
2018-03-22 06:10:06 | jeff.allen | link | issue695383 messages |
2018-03-22 06:10:05 | jeff.allen | create | |
|