Skip to content

Commit 548e6c7

Browse files
committed
3.11 Whatsnew: Copyedit section describing exception notes
1 parent 7dacbbf commit 548e6c7

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Doc/whatsnew/3.11.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,14 @@ Irit Katriel, Yury Selivanov and Guido van Rossum.)
187187

188188

189189
PEP 678: Exceptions can be enriched with notes
190-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
191-
192-
The :meth:`add_note` method was added to :exc:`BaseException`. It can be
193-
used to enrich exceptions with context information which is not available
194-
at the time when the exception is raised. The notes added appear in the
195-
default traceback. See :pep:`678` for more details. (Contributed by
196-
Irit Katriel in :issue:`45607`.)
190+
----------------------------------------------
191+
192+
The :meth:`~BaseException.add_note` method is added to :exc:`BaseException`.
193+
It can be used to enrich exceptions with context information
194+
that is not available at the time when the exception is raised.
195+
The added notes appear in the default traceback.
196+
See :pep:`678` for more details.
197+
(Contributed by Irit Katriel in :issue:`45607`.)
197198

198199

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

0 commit comments

Comments
 (0)