@@ -176,14 +176,33 @@ The :option:`-X` ``no_debug_ranges`` option and the environment variable
176
176
See :pep: `657 ` for more details. (Contributed by Pablo Galindo, Batuhan Taskaya
177
177
and Ammar Askar in :issue: `43950 `.)
178
178
179
+ Exception Groups and ``except* `` (PEP 654)
180
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
181
+
182
+ :pep: `654 ` introduces language features that enable a program
183
+ to raise and handle multiple unrelated exceptions simultaneously.
184
+ The builtin types :exc: `ExceptionGroup ` and :exc: `BaseExceptionGroup `
185
+ make it possible to group exceptions and raise them together.
186
+ The new ``except* `` syntax generalizes ``except `` to match subgroups
187
+ of exception groups.
188
+
189
+ See :pep: `654 ` for more details.
190
+
191
+ (Contributed by Irit Katriel in :issue: `45292 `. PEP written by
192
+ Irit Katriel, Yury Selivanov and Guido van Rossum.)
193
+
179
194
Exceptions can be enriched with notes (PEP 678)
180
195
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
181
196
182
197
The :meth: `add_note ` method was added to :exc: `BaseException `. It can be
183
198
used to enrich exceptions with context information which is not available
184
199
at the time when the exception is raised. The notes added appear in the
185
- default traceback. See :pep: `678 ` for more details. (Contributed by
186
- Irit Katriel in :issue: `45607 `.)
200
+ default traceback.
201
+
202
+ See :pep: `678 ` for more details.
203
+
204
+ (Contributed by Irit Katriel in :issue: `45607 `. PEP written by
205
+ Zac Hatfield-Dodds.)
187
206
188
207
189
208
.. _new-feat-related-type-hints-311 :
0 commit comments