[issue15319] IDLE - input() is broken.

2012-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ah, sys.stdin.readline() works. So the object being proxied has readline (and write and writelines) but not read and readlines. I presume the proxy is in the user process and the actual stdin/out/err objects are in the idle process, interacting with the scree

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Roger Serwy
Roger Serwy added the comment: > Same difference for readlines and writelines. I wonder how input works if it > does not call sys.stdin.read() > Eventually IDLE makes a call to PyShell's readline. -- ___ Python tracker

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Roger Serwy
Roger Serwy added the comment: Including issue15318 where stdin is writable. The proper solution to that issue and this one are likely the same. -- ___ Python tracker ___ _

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the _RPCFile wrapping of the stdin proxy should be undone unless and until there is a positive reason for it -- it solves a problem -- and it is better tested. But reversion does not solve pre-existing problems. As noted by Roger, sys.stdin write

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Roger Serwy
Roger Serwy added the comment: I like Serhiy's patch. It works for me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is a simpler solution of this issue. -- nosy: +storchaka type: -> behavior Added file: http://bugs.python.org/file26346/idle_stdin_no_rpcfile.patch ___ Python tracker ___

[issue15319] IDLE - input() is broken.

2012-07-10 Thread Roger Serwy
New submission from Roger Serwy : Per Martin's request in msg165197, this issue has been separated from Issue13532. The newly introduced _RPCFile object in run.py (422242dbce30) inherits from io.TextIOBase which has "readline" as one of its methods. As a result, IDLE's internal call readline