File tree 1 file changed +19
-2
lines changed
1 file changed +19
-2
lines changed 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
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
- Exceptions can be enriched with notes (PEP 678)
180
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
179
+
180
+ PEP 654: Exception Groups and ``except* ``
181
+ -----------------------------------------
182
+
183
+ :pep: `654 ` introduces language features that enable a program
184
+ to raise and handle multiple unrelated exceptions simultaneously.
185
+ The builtin types :exc: `ExceptionGroup ` and :exc: `BaseExceptionGroup `
186
+ make it possible to group exceptions and raise them together,
187
+ and the new :keyword: `except* <except_star> ` syntax generalizes
188
+ :keyword: `except ` to match subgroups of exception groups.
189
+
190
+ See :pep: `654 ` for more details.
191
+
192
+ (Contributed by Irit Katriel in :issue: `45292 `. PEP written by
193
+ Irit Katriel, Yury Selivanov and Guido van Rossum.)
194
+
195
+
196
+ PEP 678: Exceptions can be enriched with notes
197
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
181
198
182
199
The :meth: `add_note ` method was added to :exc: `BaseException `. It can be
183
200
used to enrich exceptions with context information which is not available
You can’t perform that action at this time.
0 commit comments