Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[3.13] gh-131878: Handle top level exceptions in new pyrepl and prevent of closing it (GH-131910)#133445

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ambv merged 1 commit intopython:3.13fromambv:backport-99a0d7e-3.13
May 5, 2025
Merged
Show file tree
Hide file tree
Changes fromall commits
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
[3.13]gh-131878: Handle top level exceptions in new pyrepl and preve…
…nt of closing it (GH-131910)(cherry picked from commit99a0d7e)Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>Co-authored-by: Łukasz Langa <lukasz@langa.pl>
  • Loading branch information
@sergey-miryanov@ambv
sergey-miryanov andambv committedMay 5, 2025
commitb75310db3b11b777ace2fff117539ab4e8052809
5 changes: 5 additions & 0 deletionsLib/_pyrepl/simple_interact.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -163,3 +163,8 @@ def maybe_run_command(statement: str) -> bool:
except MemoryError:
console.write("\nMemoryError\n")
console.resetbuffer()
except SystemExit:
raise
except:
console.showtraceback()
console.resetbuffer()
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
Handle uncaught exceptions in the main input loop for the new REPL.
Loading

[8]ページ先頭

©2009-2025 Movatter.jp