summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-04-19 05:05:52 (GMT)
committerGitHub <noreply@github.com>2023-04-19 05:05:52 (GMT)
commitd1e4917e06d5638f1a7fa189d6d63ec9c2a27753 (patch)
tree4263365b5651e4289fd6eba2df7feded055728d0 /Lib/idlelib
parentf4d087964e3deaabc902a155efdf0e7f43f78d52 (diff)
downloadcpython-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.py1
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):