Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
232d87b6953eba87d77c4e18ee3c4b13c09dd28613c64a047602fdc9File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -176,8 +176,25 @@ The :option:`-X` ``no_debug_ranges`` option and the environment variable | ||||||
| See :pep:`657` for more details. (Contributed by Pablo Galindo, Batuhan Taskaya | ||||||
| and Ammar Askar in :issue:`43950`.) | ||||||
| PEP 654: Exception Groups and ``except*`` | ||||||
| ----------------------------------------- | ||||||
| :pep:`654` introduces language features that enable a program | ||||||
| to raise and handle multiple unrelated exceptions simultaneously. | ||||||
| The builtin types :exc:`ExceptionGroup` and :exc:`BaseExceptionGroup` | ||||||
| make it possible to group exceptions and raise them together, | ||||||
| and the new :keyword:`except* <except_star>` syntax generalizes | ||||||
| :keyword:`except` to match subgroups of exception groups. | ||||||
| See :pep:`654` for more details. | ||||||
| (Contributed by Irit Katriel in :issue:`45292`. PEP written by | ||||||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Suggested change
MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. This should be done (if at all) in a separate PR where the summary reference to the same issue is updated as well. I say "if at all" because this is not historically accurate - I did the work under a bpo issue. Are you going to change all references to bpo issues in the docs to the gh issues they were mapped to? | ||||||
| Irit Katriel, Yury Selivanov and Guido van Rossum.) | ||||||
| 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 | ||||||