mirror of https://github.com/python/cpython
gh-102778: IDLE - make sys.last_exc available in Shell after traceback (#103314)
--------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
f4d087964e
commit
d1e4917e06
|
@ -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):
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Support ``sys.last_exc`` in :mod:`idlelib`.
|
Loading…
Reference in New Issue