mirror of https://github.com/python/cpython.git
gh-131878: Handle top level exceptions in new pyrepl and prevent of closing it (#131910)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This commit is contained in:
parent
1bc16504ef
commit
99a0d7e5b3
|
@ -162,3 +162,8 @@ def maybe_run_command(statement: str) -> bool:
|
|||
except MemoryError:
|
||||
console.write("\nMemoryError\n")
|
||||
console.resetbuffer()
|
||||
except SystemExit:
|
||||
raise
|
||||
except:
|
||||
console.showtraceback()
|
||||
console.resetbuffer()
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Handle uncaught exceptions in the main input loop for the new REPL.
|
Loading…
Reference in New Issue