diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-04-19 05:05:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 05:05:52 (GMT) |
commit | d1e4917e06d5638f1a7fa189d6d63ec9c2a27753 (patch) | |
tree | 4263365b5651e4289fd6eba2df7feded055728d0 /Lib/idlelib | |
parent | f4d087964e3deaabc902a155efdf0e7f43f78d52 (diff) | |
download | cpython-d1e4917e06d5638f1a7fa189d6d63ec9c2a27753.zip cpython-d1e4917e06d5638f1a7fa189d6d63ec9c2a27753.tar.gz cpython-d1e4917e06d5638f1a7fa189d6d63ec9c2a27753.tar.bz2 |
gh-102778: IDLE - make sys.last_exc available in Shell after traceback (#103314)
---------
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/run.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 577c49e..04ce615 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -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): |