-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-119553: Fix console when pressing Ctrl-C within a multiline block #120075
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
Conversation
@@ -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 <[email protected]>
GH-120076 is a backport of this pull request to the 3.13 branch. |
… block (GH-120075) (#120076) (cherry picked from commit 69b3e8e) Co-authored-by: Lysandros Nikolaou <[email protected]>
|
Uh oh!
There was an error while loading. Please reload this page.