Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c6e9c6d

Browse filesBrowse files
committed
3.11 Whatsnew: Copyedit section describing exception notes
1 parent b7af977 commit c6e9c6d
Copy full SHA for c6e9c6d

File tree

Expand file treeCollapse file tree

1 file changed

+9
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-8
lines changed

‎Doc/whatsnew/3.11.rst

Copy file name to clipboardExpand all lines: Doc/whatsnew/3.11.rst
+9-8Lines changed: 9 additions & 8 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.