Issue #25660: Fix TAB key behaviour in REPL.
diff --git a/Lib/rlcompleter.py b/Lib/rlcompleter.py
index 378f5aa..26f5920 100644
--- a/Lib/rlcompleter.py
+++ b/Lib/rlcompleter.py
@@ -75,7 +75,9 @@
 
         if not text.strip():
             if state == 0:
-                return '\t'
+                readline.insert_text('\t')
+                readline.redisplay()
+                return ''
             else:
                 return None
 
diff --git a/Misc/NEWS b/Misc/NEWS
index 3a71354..691c533 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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
 -------