changeset: 100155:64417e7a1760 branch: 3.5 parent: 100152:78f32effc87a user: Yury Selivanov date: Thu Feb 04 01:23:05 2016 -0500 files: Lib/rlcompleter.py Misc/NEWS description: Issue #25660: Fix TAB key behaviour in REPL. diff -r 78f32effc87a -r 64417e7a1760 Lib/rlcompleter.py --- a/Lib/rlcompleter.py Wed Feb 03 22:05:46 2016 -0600 +++ b/Lib/rlcompleter.py Thu Feb 04 01:23:05 2016 -0500 @@ -75,7 +75,9 @@ if not text.strip(): if state == 0: - return '\t' + readline.insert_text('\t') + readline.redisplay() + return '' else: return None diff -r 78f32effc87a -r 64417e7a1760 Misc/NEWS --- a/Misc/NEWS Wed Feb 03 22:05:46 2016 -0600 +++ b/Misc/NEWS Thu Feb 04 01:23:05 2016 -0500 @@ -67,6 +67,9 @@ - Issue #26171: Fix possible integer overflow and heap corruption in zipimporter.get_data(). +- Issue #25660: Fix TAB key behaviour in REPL with readline. + + Library -------