cpython: 4b4f142befea (original) (raw)

Mercurial > cpython

changeset 83074:4b4f142befea

#14254: merge with 3.3. [#14254]

Roger Serwy roger.serwy@gmail.com
date Wed, 03 Apr 2013 00:43:31 -0500
parents 578edbe38f0a(current diff)0be85a7fc839(diff)
children 660d6a4bfce9
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 @@ -458,6 +458,7 @@ class ModifiedInterpreter(InteractiveInt self.display_no_subprocess_error() return None self.transfer_path(with_cwd=with_cwd)

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

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

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

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

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