cpython/Lib/_pyrepl
Miss Islington (bot) ae833ab14c
[3.14] gh-159225: PyREPL input should not write to history (GH-159263) (#159370)
gh-159225: PyREPL input should not write to history (GH-159263)

* gh-159225: PyREPL input should not write to history

Values entered in an input statement are not Python statements and thus the reader should suspend history recording when in input mode

* 📜🤖 Added by blurb_it.

* Remove comment

* Only suspend writing

* gh-159225: Cover input history isolation and interrupted reads

---------
(cherry picked from commit 6f92424d8e)

Co-authored-by: Eduardo Villalpando Mello <eduardovil@microsoft.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2026-10-13 21:29:35 +01:00
..
__init__.py
__main__.py
_module_completer.py [3.14] gh-69605: Check for already imported modules in PyREPL module completion (GH-143438) 2026-01-05 19:47:26 +01:00
_threading_handler.py
base_eventqueue.py [3.14] Bump mypy to 1.16.1 (GH-135720) (#135848) 2025-06-23 13:09:24 +00:00
commands.py [3.14] gh-133400: Fixed Ctrl+D (^D) behavior in :mod:_pyrepl module (GH-133883) (GH-139850) 2025-10-09 17:38:25 +02:00
completing_reader.py
console.py [3.14] gh-69919: Catch all compile errors in the code module, pyrepl and IDLE (GH-157585) (#158029) 2026-09-23 21:29:55 -04:00
fancy_termios.py [3.14] gh-134466: Don't run when termios is inaccessible (GH-138911) (GH-139029) 2025-10-07 22:15:56 +02:00
historical_reader.py [3.14] gh-159225: PyREPL input should not write to history (GH-159263) (#159370) 2026-10-13 21:29:35 +01:00
input.py
keymap.py
main.py [3.14] gh-127960 Fix the REPL to set the correct namespace by setting the correct __main__ module (gh-134275) (gh-134473) 2025-05-22 03:33:35 +02:00
mypy.ini
pager.py
reader.py [3.14] gh-146458: Fix REPL height and width tracking on resize (GH-146459) (#148232) 2026-04-07 21:37:46 +00:00
readline.py [3.14] gh-159225: PyREPL input should not write to history (GH-159263) (#159370) 2026-10-13 21:29:35 +01:00
simple_interact.py [3.14] gh-69919: Catch all compile errors in the code module, pyrepl and IDLE (GH-157585) (#158029) 2026-09-23 21:29:55 -04:00
terminfo.py [3.14] gh-135621: Simplify TermInfo (GH-136916) (#136925) 2025-07-21 18:04:13 +02:00
trace.py [3.14] gh-124621: Emscripten: Support pyrepl in browser (GH-136931) (GH-136988) 2025-07-22 15:04:11 +02:00
types.py
unix_console.py [3.14] gh-152907: Restore cooked output flags around the input hook in the new REPL (GH-153389) (#158117) 2026-09-24 17:08:32 +00:00
unix_eventqueue.py [3.14] gh-135621: Remove dependency on curses from PyREPL (GH-136758) (GH-136915) 2025-07-21 13:02:41 +02:00
utils.py [3.14] gh-151390: Colorize match + and match - in the REPL (GH-151391) (#151477) 2026-06-14 16:40:51 +00:00
windows_console.py [3.14] gh-152068: Reset PyREPL Colors on prompt finish (GH-152108) (#154402) 2026-09-24 17:22:18 +01:00
windows_eventqueue.py