File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Misc/NEWS.d/next/Core and Builtins Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -397,10 +397,10 @@ sys
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
400
+ * Add :data: ` sys.last_exc ` which holds the last unhandled exception that
401
401
was raised (for post-mortem debugging use cases). Deprecate the
402
402
three fields that have the same information in its legacy form:
403
- `` sys.last_type ``, `` sys.last_value `` and `` sys.last_traceback ` `.
403
+ :data: ` sys.last_type `, :data: ` sys.last_value ` and :data: ` sys.last_traceback `.
404
404
(Contributed by Irit Katriel in :gh: `102778 `.)
405
405
406
406
@@ -494,8 +494,9 @@ Deprecated
494
494
contain the creation time, which is also available in the new ``st_birthtime ``
495
495
field. (Contributed by Steve Dower in :gh: `99726 `.)
496
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 `.)
497
+ * The :data: `sys.last_type `, :data: `sys.last_value ` and :data: `sys.last_traceback `
498
+ fields. Use :data: `sys.last_exc ` instead.
499
+ (Contributed by Irit Katriel in :gh: `102778 `.)
499
500
500
501
Pending Removal in Python 3.13
501
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.
1
+ Add :data: `sys.last_exc ` and deprecate :data: `sys.last_type `, :data: `sys.last_value `
2
+ and :data: `sys.last_traceback `,
3
+ which hold the same information in its legacy form.
You can’t perform that action at this time.
0 commit comments