Skip to content

Commit

Permalink
gh-102778: IDLE - make sys.last_exc available in Shell after traceback (
Browse files Browse the repository at this point in the history
#103314)

---------
Co-authored-by: Terry Jan Reedy <[email protected]>
  • Loading branch information
iritkatriel authored Apr 19, 2023
1 parent f4d0879 commit d1e4917
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Lib/idlelib/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ def print_exception():
efile = sys.stderr
typ, val, tb = excinfo = sys.exc_info()
sys.last_type, sys.last_value, sys.last_traceback = excinfo
sys.last_exc = val
seen = set()

def print_exc(typ, exc, tb):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support ``sys.last_exc`` in :mod:`idlelib`.

0 comments on commit d1e4917

Please sign in to comment.