8000 gh-95914: Add paragraph about PEP 654 in main body of 'What's New in 3.11' by iritkatriel · Pull Request #95937 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-95914: Add paragraph about PEP 654 in main body of 'What's New in 3.11' #95937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Aug 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert PEP-678 changes. Update titles
  • Loading branch information
iritkatriel committed Aug 13, 2022
commit dd2861378be61fb62d949dc665b6f98dce1959dc
16 changes: 6 additions & 10 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ See :pep:`657` for more details. (Contributed by Pablo Galindo, Batuhan Taskaya
and Ammar Askar in :issue:`43950`.)


Exception Groups and ``except*`` (PEP 654)
------------------------------------------
PEP 654: Exception Groups and ``except*``
-----------------------------------------

:pep:`654` introduces language features that enable a program
to raise and handle multiple unrelated exceptions simultaneously.
Expand All @@ -194,18 +194,14 @@ See :pep:`654` for more details.
Irit Katriel, Yury Selivanov and Guido van Rossum.)


Exceptions can be enriched with notes (PEP 678)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PEP 678: Exceptions can be enriched with notes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The :meth:`add_note` method was added to :exc:`BaseException`. It can be
used to enrich exceptions with context information which is not available
at the time when the exception is raised. The notes added appear in the
default traceback.

See :pep:`678` for more details.

(Contributed by Irit Katriel in :issue:`45607`. PEP written by
Zac Hatfield-Dodds.)
default traceback. See :pep:`678` for more details. (Contributed by
Irit Katriel in :issue:`45607`.)


.. _new-feat-related-type-hints-311:
Expand Down
0