Files
cpython/Lib/test/test_pyrepl
73f77e642a [3.13] gh-121610: pyrepl - handle extending blocks when multi-statement blocks are pasted (GH-121757) (GH-121825)
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 adds a few extra checks to allow extending when in an indented
block, and tests for a few examples.

(cherry picked from commit 7d111dac16)

Co-authored-by: saucoide <[email protected]>
Co-authored-by: Łukasz Langa <[email protected]>
2024-07-16 08:28:41 +02:00
..