8000 gh-131878: Handle top level exceptions in new pyrepl and prevent of closing it by sergey-miryanov · Pull Request #131910 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-131878: Handle top level exceptions in new pyrepl and prevent of closing it #131910

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
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Handle top level exceptions in new pyrepl and prevent of closing it
  • Loading branch information
sergey-miryanov committed Mar 30, 2025
commit 56f07842690ecd55c46eab945c33ea78fcf6c41a
5 changes: 5 additions & 0 deletions Lib/_pyrepl/simple_interact.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,8 @@ def maybe_run_command(statement: str) -> bool:
except MemoryError:
console.write("\nMemoryError\n")
console.resetbuffer()
except SystemExit:
break
except:
console.showtraceback()
console.resetbuffer()
Loading
0