report at bugs
Jul 12, 2012, 2:13 AM
Post #24 of 31
Serhiy Storchaka <storchaka [at] gmail> added the comment:
[issue15318] IDLE - sys.stdin is writeable
[In reply to]
> Ah. See blockfiles-3.diff then.
Well, I have no objections. Patch fixes this issue.
> Where do you see that? In my patch, _RPCInputFile inherits from
> _RPCFile, which is neither output nor input. Instead, _RPCOutputFile
> also inherits from _RPCFile.
I made a mistake. I mean PseudoInputFile, but it just monkey-patched.
> > _RPCInputFile unnecessary, if redirect stdin not on PyShell self, but on
> > PyShell.stdin.
> It is necessary, as rpc will not communicate the exceptions properly.
Yes, this is yet another issue. Rpc not communicates properly only
OSError. Remove "except socket.error: raise" in SocketIO.localcall in
Lib/idlelib/rpc.py and io.UnsupportedOperation will transparently
Python tracker <report [at] bugs>
Python-bugs-list mailing list