[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

Terry J. Reedy report at bugs.python.org
Mon Dec 12 23:34:18 CET 2011


Terry J. Reedy <tjreedy at udel.edu> added the comment:

We should like the IDLE shell to give the same results as the standard shell. See #7163

On 3.2.2 on Win7, the problem is worse: sys.stdout.write(100) crashes IDLE -- as in it just fades away after a short (1/2 sec?) delay.
 sys.stdout.write(sys)
gives me the error reported.

The difference comes from this in the Command Window:
>>> sys.stdout
<_io.TextIOWrapper name='<stdout>' mode='w' encoding='cp437'>

versus this in IDLE:
>>> import sys
>>> sys.stdout
<idlelib.rpc.RPCProxy object at 0x00000000031D0208>

----------
nosy: +terry.reedy
type: behavior -> crash

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13532>
_______________________________________


More information about the Python-bugs-list mailing list