-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
Editing the last line in a block in the new REPL is buggy #118911
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-repl
Related to the interactive shell
type-bug
An unexpected behavior, bug, or error
Comments
I'll give this a go |
aelsayed95
added a commit
to aelsayed95/cpython
that referenced
this issue
May 21, 2024
…user from terminating the code block
ambv
added a commit
that referenced
this issue
May 22, 2024
…from terminating the code block (#119355) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
lysnikolaou
pushed a commit
to lysnikolaou/cpython
that referenced
this issue
May 22, 2024
…ent the user from terminating the code block (pythonGH-119355) (cherry picked from commit 5091c44) Co-authored-by: Aya Elsayed <ayah.ehab11@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
lysnikolaou
added a commit
that referenced
this issue
May 23, 2024
This has been fixed! Congrats @aelsayed95! 🎉 I'm closing this, but feel free to reopen in case something's off. |
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
… user from terminating the code block (python#119355) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
topic-repl
Related to the interactive shell
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
When editing the last line in a function in the new REPL, hitting Enter doesn't end the block if the last line has indentation on it.
Demo of the bug, demo of what IPython does
Originally posted in #111201 (comment)
Here are the noticeable differences in how IPython handles this situation:
Implementing the behavior of 1 (or 3) above might be enough, though 2 seems like it would be even better.
CPython versions tested on:
3.13
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: