-
-
Notifications
You must be signed in to change notification settings - Fork 30.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
gh-119553: Fix console when pressing Ctrl-C within a multiline block #120075
gh-119553: Fix console when pressing Ctrl-C within a multiline block #120075
Conversation
lysnikolaou
commented
Jun 4, 2024
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: PyREPL: KeyboardInterrupt does not clear completion menu if it's already visible #119553
@@ -149,7 +149,7 @@ def more_lines(unicodetext: str) -> bool: | |||
assert not more | |||
input_n += 1 | |||
except KeyboardInterrupt: | |||
console.write("\nKeyboardInterrupt\n") | |||
console.write("KeyboardInterrupt\n") | |||
console.resetbuffer() | |||
except MemoryError: | |||
console.write("\nMemoryError\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.write("\nMemoryError\n") | |
console.write("MemoryError\n") |
Thanks @lysnikolaou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…block (pythonGH-120075) (cherry picked from commit 69b3e8e) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
GH-120076 is a backport of this pull request to the 3.13 branch. |
|