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 @@ -175,8 +175,25 @@ The :option:`-X` ``no_debug_ranges`` option and the environment variable
175
175
See :pep: `657 ` for more details. (Contributed by Pablo Galindo, Batuhan Taskaya
176
176
and Ammar Askar in :issue: `43950 `.)
177
177
178
- Exceptions can be enriched with notes (PEP 678)
179
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
178
+
179
+ PEP 654: Exception Groups and ``except* ``
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
+ and the new :keyword: `except* <except_star> ` syntax generalizes
187
+ :keyword: `except ` to match subgroups 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
+
194
+
195
+ PEP 678: Exceptions can be enriched with notes
196
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
180
197
181
198
The :meth: `add_note ` method was added to :exc: `BaseException `. It can be
182
199
used to enrich exceptions with context information which is not available
You can’t perform that action at this time.
0 commit comments