Skip to content

Commit c6e9c6d

Browse files
committed
3.11 Whatsnew: Copyedit section describing exception notes
1 parent b7af977 commit c6e9c6d

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

Doc/whatsnew/3.11.rst

+9-8
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,15 @@ and Ammar Askar in :issue:`43950`.)
152152
or the :envvar:`PYTHONNODEBUGRANGES` environment variable.
153153

154154

155-
Exceptions can be enriched with notes (PEP 678)
156-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
157-
158-
The :meth:`add_note` method was added to :exc:`BaseException`. It can be
159-
used to enrich exceptions with context information which is not available
160-
at the time when the exception is raised. The notes added appear in the
161-
default traceback. See :pep:`678` for more details. (Contributed by
162-
Irit Katriel in :issue:`45607`.)
155+
Exceptions can be enriched with notes
156+
-------------------------------------
157+
158+
The :meth:`~BaseException.add_note` method was added to :exc:`BaseException`.
159+
It can be used to enrich exceptions with context information
160+
that is not available at the time when the exception is raised.
161+
The added notes appear in the default traceback.
162+
See :pep:`678` for more details.
163+
(Contributed by Irit Katriel in :issue:`45607`.)
163164

164165

165166
.. _new-feat-related-type-hints-311:

0 commit comments

Comments
 (0)