cpython: 097554712637 (original) (raw)

Mercurial > cpython

changeset 83072:097554712637 2.7

#14254: IDLE now handles readline correctly across shell restarts. [#14254]

Roger Serwy roger.serwy@gmail.com
date Wed, 03 Apr 2013 00:42:24 -0500
parents 1e5e497ee33b
children 5ffb808683e1
files Lib/idlelib/PyShell.py Misc/NEWS
diffstat 2 files changed, 14 insertions(+), 2 deletions(-)[+] [-] Lib/idlelib/PyShell.py 14 Misc/NEWS 2

line wrap: on

line diff

--- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -469,6 +469,7 @@ class ModifiedInterpreter(InteractiveInt self.display_no_subprocess_error() return None self.transfer_path(with_cwd=with_cwd)

@@ -908,6 +909,7 @@ class PyShell(OutputWindow): canceled = False endoffile = False closing = False

def set_warning_stream(self, stream): global warning_stream @@ -983,8 +985,7 @@ class PyShell(OutputWindow): parent=self.text) if response is False: return "cancel"

@@ -1036,6 +1037,12 @@ class PyShell(OutputWindow): Tkinter._default_root = None # 03Jan04 KBK What's this? return True

+ def readline(self): save = self.reading try: @@ -1043,6 +1050,9 @@ class PyShell(OutputWindow): self.top.mainloop() # nested mainloop() finally: self.reading = save

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -12,6 +12,8 @@ Core and Builtins Library ------- +- Issue #14254: IDLE now handles readline correctly across shell restarts. +