cpython/Lib/_pyrepl
saucoide 7d111dac16
gh-121610: pyrepl - handle extending blocks when multi-statement blocks are pasted (GH-121757)
console.compile with the "single" param throws an exception when
there are multiple statements, never allowing to adding newlines
to a pasted code block (gh-121610)

This add a few extra checks to allow extending when in an indented
block, and tests for a few examples

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2024-07-16 01:33:57 +02:00
..
__init__.py
__main__.py gh-118908: Use __main__ for the default PyREPL namespace (#121054) 2024-06-26 15:01:10 -04:00
_minimal_curses.py Improve pyrepl type-annotation coverage (#119081) 2024-05-17 06:13:24 -04:00
commands.py gh-119517: Fixes for pasting in pyrepl (#120253) 2024-06-11 16:42:10 +00:00
completing_reader.py gh-119517: Fixes for pasting in pyrepl (#120253) 2024-06-11 16:42:10 +00:00
console.py gh-119842: Honor PyOS_InputHook in the new REPL (GH-119843) 2024-06-04 20:32:43 +02:00
curses.py
fancy_termios.py
historical_reader.py gh-121499: Fix multi-line history rendering in the REPL (#121531) 2024-07-13 12:54:10 +02:00
input.py Improve pyrepl type-annotation coverage (#119081) 2024-05-17 06:13:24 -04:00
keymap.py Remove almost all unpaired backticks in docstrings (#119231) 2024-05-22 12:35:18 -04:00
main.py gh-121790: Fix interactive console initialization (#121793) 2024-07-16 00:24:18 +02:00
mypy.ini Enable some stricter mypy settings on Lib/_pyrepl (#119077) 2024-05-20 08:52:32 -04:00
pager.py gh-120417: Remove unused imports in the stdlib (#120420) 2024-06-12 20:56:42 +02:00
reader.py gh-121746: Bind Alt+Enter to "accept" in the REPL (GH-121754) 2024-07-15 19:47:56 +02:00
readline.py gh-121790: Fix interactive console initialization (#121793) 2024-07-16 00:24:18 +02:00
simple_interact.py gh-121610: pyrepl - handle extending blocks when multi-statement blocks are pasted (GH-121757) 2024-07-16 01:33:57 +02:00
trace.py
types.py
unix_console.py gh-121497: Make Pyrepl respect correctly the history with input hook set (#121498) 2024-07-13 09:42:14 +00:00
unix_eventqueue.py
utils.py gh-119517: Fixes for pasting in pyrepl (#120253) 2024-06-11 16:42:10 +00:00
windows_console.py gh-120417: Remove unused imports in the stdlib (#120420) 2024-06-12 20:56:42 +02:00