summaryrefslogtreecommitdiffstats
path: root/Lib/_pyrepl/simple_interact.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.13] gh-123856: Fix PyREPL failure when a keyboard interrupt is triggered ↵Miss Islington (bot)2024-09-261-5/+6
| | | | | | | | | after using a history search (GH-124396) (#124530) gh-123856: Fix PyREPL failure when a keyboard interrupt is triggered after using a history search (GH-124396) (cherry picked from commit c1600c78e4565b6bb558ade451abe2648ba4dd0a) Co-authored-by: Emily Morehouse <emily@cuttlesoft.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.13] gh-119034, REPL: Change page up/down keys to search in history ↵Miss Islington (bot)2024-09-061-1/+2
| | | | | | | | | | | (GH-123607) (GH-123773) Change <page up> and <page down> keys of the Python REPL to history search forward/backward. (cherry picked from commit 8311b11800509c975023e062e2c336f417c5e4c0) Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.13] gh-119896: Fix CTRL-Z behavior in the new REPL on Windows (GH-122217) ↵Miss Islington (bot)2024-07-301-0/+1
| | | | | | | | (#122451) gh-119896: Fix CTRL-Z behavior in the new REPL on Windows (GH-122217) (cherry picked from commit d1a1bca1f0550a4715f1bf32b1586caa7bc4487b) Co-authored-by: Dino Viehland <dinoviehland@meta.com>
* [3.13] gh-121295: Fix blocked console after interrupting a long paste ↵Miss Islington (bot)2024-07-161-1/+9
| | | | | | | (GH-121815) (GH-121826) (cherry picked from commit 498a94c198e72525b8a7f4cb4f4a8957560f593a) Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
* [3.13] gh-121610: pyrepl - handle extending blocks when multi-statement ↵Miss Islington (bot)2024-07-161-10/+21
| | | | | | | | | | | | | | | 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 7d111dac160c658b277ec0fac75eee8edcfbe9dc) Co-authored-by: saucoide <32314353+saucoide@users.noreply.github.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.13] gh-121790: Fix interactive console initialization (GH-121793) (GH-121822)Miss Islington (bot)2024-07-151-11/+3
| | | | | | (cherry picked from commit e5c7216f376a06d2c931daf999e2980e494e747e) Co-authored-by: Milan Oberkirch <milan.oberkirch@geops.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.13] gh-118908: Use __main__ for the default PyREPL namespace (GH-121054) ↵Miss Islington (bot)2024-06-261-11/+1
| | | | (#121059)
* [3.13] gh-118908: Fix completions after namespace change in REPL (GH-120370) ↵Miss Islington (bot)2024-06-121-2/+2
| | | | | | | (#120392) (cherry picked from commit 02e74c356223feb0771759286d24d1dbac01d4ca) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.13] gh-118908: Limit exposed globals from internal imports and ↵Miss Islington (bot)2024-06-111-3/+18
| | | | definitions on new REPL startup (GH-119547) (#120362)
* [3.13] gh-119553: Fix console when pressing Ctrl-C within a multiline block ↵Miss Islington (bot)2024-06-041-1/+1
| | | | | | | (GH-120075) (#120076) (cherry picked from commit 69b3e8ea569faabccd74036e3d0e5ec7c0c62a20) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.13] gh-118894: Make asyncio REPL use pyrepl (GH-119433) (#119884)Miss Islington (bot)2024-05-311-45/+8
| | | | | (cherry picked from commit 2237946af0981c46dc7d3886477e425ccfb37f28) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.13] gh-111201: Support pyrepl on Windows (GH-119559) (GH-119850)Miss Islington (bot)2024-05-311-1/+5
| | | | | | | | (cherry picked from commit 0d07182821fad7b95a043d006f1ce13a2d22edcb) Co-authored-by: Dino Viehland <dinoviehland@gmail.com> Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* [3.13] gh-119548: Add a 'clear' command to the REPL (GH-119549) (#119552)Miss Islington (bot)2024-05-311-1/+6
| | | | | | gh-119548: Add a 'clear' command to the REPL (GH-119549) (cherry picked from commit e3bac04c37f6823cebc74d97feae0e0c25818b31) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* [3.13] gh-119555: catch SyntaxError from compile() in the ↵Miss Islington (bot)2024-05-291-1/+1
| | | | InteractiveColoredConsole (GH-119557) (#119709)
* [3.13] gh-119443: Turn off from __future__ import annotations in REPL ↵Miss Islington (bot)2024-05-291-1/+1
| | | | | | | | (GH-119493) (#119697) gh-119443: Turn off from __future__ import annotations in REPL (GH-119493) (cherry picked from commit a8e35e8ebad8c3bb44d14968aa05d1acbc028247) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* [3.13] gh-111201: Speed up paste mode in the REPL (#119341) (GH-119432) ↵Miss Islington (bot)2024-05-231-1/+2
| | | | | | | | | | | | | | (#119439) (cherry picked from commit e6572e8f98d33994d2d0dd3afa92a2a72ee642a9) Also includes: * gh-111201: Use calc_complete_screen after bracketed paste in PyREPL (GH-119432) (cherry picked from commit 14b063cbf1bb11a489d04a31f277edba0fc8893c) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
* [3.13] gh-118893: Evaluate all statements in the new REPL separately ↵Miss Islington (bot)2024-05-221-4/+29
| | | | | | | | (GH-119318) (#119408) (cherry picked from commit a3e4fec8734a304d654e4ae24a4aa2f41a7b0640) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-111201: Allow pasted code to contain multiple statements in the REPL ↵Pablo Galindo Salgado2024-05-071-2/+5
| | | | | (#118712) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* Remove several unused imports in `_pyrepl` (#118668)Nikita Sobolev2024-05-071-2/+0
|
* gh-111201: A new Python REPL (GH-111567)Pablo Galindo Salgado2024-05-051-0/+157
Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Marta Gómez Macías <mgmacias@google.com> Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>