[issue16103] sys.stdin.readline 'unsupported' (IDLE 2.7.3, Win7, pythonw)
Terry J. Reedy
report at bugs.python.org
Tue Oct 16 21:10:04 CEST 2012
Terry J. Reedy added the comment:
Roger, you are partially right -- there are changes, but they were intentional. I updated the idlelib part of my installation to match the repository on July 9 to incorporate the _RPCFile wrapping of of the three stdio files, including this:
- sys.stdin = self.console = self.get_remote_proxy("stdin")
+ sys.stdin = self.console = _RPCFile(self.get_remote_proxy("stdin"))
>>> import sys
>>> sys.stdin
<idlelib.run._RPCInputFile object at 0x000000000315D320>
Sorry about forgetting this. Anyway, I presume you remember that issue. It seems that there is still a bug either in that update or its interaction with other code. What happens in linux with a fresh 2.7 build?
Serhiy's patch for #9290 replaces _RPCXyxFile with PseudoXyzFile subclasses of revised PseudoFile. If it works, it should fix this issue also.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16103>
_______________________________________
More information about the Python-bugs-list
mailing list