diff options
author | Georg Brandl <georg@python.org> | 2013-05-12 11:21:27 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-05-12 11:21:27 +0200 |
commit | fbb9152f92a44daf81e47e50256a13c8065c6191 (patch) | |
tree | 97a46fce5f8184a0d75edc971ba79b416b547645 | |
parent | 43473e36808a9219e7f95d02311ee579cd181c7d (diff) | |
parent | 0d4931eb9e35a37ea8b116b408082326a80c16c2 (diff) | |
download | cpython-git-fbb9152f92a44daf81e47e50256a13c8065c6191.tar.gz |
Issue #17838: merge with 3.3
-rw-r--r-- | Lib/idlelib/run.py | 5 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index c66679cde9..5283a93b80 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -297,6 +297,11 @@ class MyHandler(rpc.RPCHandler): # page help() text to shell. import pydoc # import must be done here to capture i/o binding pydoc.pager = pydoc.plainpager + + # Keep a reference to stdin so that it won't try to exit IDLE if + # sys.stdin gets changed from within IDLE's shell. See issue17838. + self._keep_stdin = sys.stdin + self.interp = self.get_remote_proxy("interp") rpc.RPCHandler.getresponse(self, myseq=None, wait=0.05) @@ -294,6 +294,8 @@ C-API IDLE ---- +- Issue #17838: Allow sys.stdin to be reassigned. + - Issue #13495: Avoid loading the color delegator twice in IDLE. - Issue #17798: Allow IDLE to edit new files when specified on command line. |