Skip to content

Commit e1cc312

Browse files
Apply suggestions from code review
Co-authored-by: Alex Waygood <[email protected]>
1 parent 4a29bc7 commit e1cc312

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,10 @@ sys
397397
with contributions from Gregory P. Smith [Google] and Mark Shannon
398398
in :gh:`96123`.)
399399

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
401401
was raised (for post-mortem debugging use cases). Deprecate the
402402
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`.
404404
(Contributed by Irit Katriel in :gh:`102778`.)
405405

406406

@@ -494,8 +494,9 @@ Deprecated
494494
contain the creation time, which is also available in the new ``st_birthtime``
495495
field. (Contributed by Steve Dower in :gh:`99726`.)
496496

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`.)
499500

500501
Pending Removal in Python 3.13
501502
------------------------------
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
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.

0 commit comments

Comments
 (0)