From: Martin v. Löwis Date: Mon, 9 Jul 2012 18:48:56 +0000 (+0200) Subject: merge 3.2 X-Git-Tag: v3.3.0b2~255^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79007fa05d1a4bb0553244b362f2ca378e0b331a;p=python merge 3.2 --- 79007fa05d1a4bb0553244b362f2ca378e0b331a diff --cc Lib/idlelib/NEWS.txt index ff23c6d1bc,d99e231e76..8c33577757 --- a/Lib/idlelib/NEWS.txt +++ b/Lib/idlelib/NEWS.txt @@@ -1,6 -1,8 +1,8 @@@ -What's New in IDLE 3.2.4? +What's New in IDLE 3.3.0? ========================= + - Issue #13532: Check that arguments to sys.stdout.write are strings. + - Issue # 12510: Attempt to get certain tool tips no longer crashes IDLE. Erroneous tool tips have been corrected. Default added for callables. diff --cc Lib/idlelib/run.py index 7124c72a63,84a5f81deb..6c91ae42a4 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@@ -264,10 -269,9 +282,10 @@@ class MyHandler(rpc.RPCHandler) """Override base method""" executive = Executive(self) self.register("exec", executive) - sys.stdin = self.console = self.get_remote_proxy("stdin") - sys.stdout = self.get_remote_proxy("stdout") - sys.stderr = self.get_remote_proxy("stderr") + sys.stdin = self.console = _RPCFile(self.get_remote_proxy("stdin")) + sys.stdout = _RPCFile(self.get_remote_proxy("stdout")) + sys.stderr = _RPCFile(self.get_remote_proxy("stderr")) + sys.displayhook = rpc.displayhook # page help() text to shell. import pydoc # import must be done here to capture i/o binding pydoc.pager = pydoc.plainpager