diff -r 6297fcddf912 Lib/idlelib/run.py --- a/Lib/idlelib/run.py Fri Apr 19 12:57:54 2013 -0400 +++ b/Lib/idlelib/run.py Fri Apr 26 09:19:16 2013 -0500 @@ -286,7 +286,7 @@ executive = Executive(self) self.register("exec", executive) self.console = self.get_remote_proxy("console") - sys.stdin = PyShell.PseudoInputFile(self.console, "stdin", + sys.stdin = self.stdin = PyShell.PseudoInputFile(self.console, "stdin", IOBinding.encoding) sys.stdout = PyShell.PseudoOutputFile(self.console, "stdout", IOBinding.encoding)