Skip to content

[3.13] gh-121610: pyrepl - handle extending blocks when multi-statement blocks are pasted (GH-121757) #121825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

miss-islington
Copy link
Contributor

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

(cherry picked from commit 7d111da)

Co-authored-by: saucoide 32314353+saucoide@users.noreply.github.com
Co-authored-by: Łukasz Langa lukasz@langa.pl

…t blocks are pasted (pythonGH-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 (pythongh-121610)

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

(cherry picked from commit 7d111da)

Co-authored-by: saucoide <32314353+saucoide@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
@bedevere-app bedevere-app bot added skip news topic-repl Related to the interactive shell labels Jul 15, 2024
@ambv ambv merged commit 73f77e6 into python:3.13 Jul 16, 2024
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news topic-repl Related to the interactive shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants