File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Misc/NEWS.d/next/Core and Builtins Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 397
397
with contributions from Gregory P. Smith [Google] and Mark Shannon
398
398
in :gh: `96123 `.)
399
399
400
+ * Add ``sys.last_exc `` which holds the last unhandled exception that
401
+ was raised (for post-mortem debugging use cases). Deprecate the
402
+ three fields that have the same information in its legacy form:
403
+ ``sys.last_type ``, ``sys.last_value `` and ``sys.last_traceback ``.
404
+ (Contributed by Irit Katriel in :gh: `102778 `.)
405
+
400
406
401
407
Optimizations
402
408
=============
@@ -488,6 +494,9 @@ Deprecated
488
494
contain the creation time, which is also available in the new ``st_birthtime ``
489
495
field. (Contributed by Steve Dower in :gh: `99726 `.)
490
496
497
+ * The ``sys.last_type ``, ``sys.last_value `` and ``sys.last_traceback `` fields.
498
+ Use ``sys.last_exc `` instead. (Contributed by Irit Katriel in :gh: `102778 `.)
499
+
491
500
Pending Removal in Python 3.13
492
501
------------------------------
493
502
Original file line number Diff line number Diff line change
1
+ Add ``sys.last_exc `` and deprecate ``sys.last_type ``, ``sys.last_value `` and
2
+ ``sys.last_traceback ``, which have the same info in its legacy form.
You can’t perform that action at this time.
0 commit comments