Message11838

Author jeff.allen
Recipients amak, cjsimpson, daishiharada, fwierzbicki, jeff.allen, pjenvey, ssteiner, zyasoft
Date 2018-03-22.06:10:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1521699006.67.0.467229070634.issue695383@psf.upfronthosting.co.za>
In-reply-to
Content
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..
History
Date User Action Args
2018-03-22 06:10:06jeff.allensetmessageid: <1521699006.67.0.467229070634.issue695383@psf.upfronthosting.co.za>
2018-03-22 06:10:06jeff.allensetrecipients: + jeff.allen, fwierzbicki, amak, daishiharada, pjenvey, zyasoft, ssteiner, cjsimpson
2018-03-22 06:10:06jeff.allenlinkissue695383 messages
2018-03-22 06:10:05jeff.allencreate