File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -340,17 +340,17 @@ one except* clause, the first that matches it. ::
340
340
+-+---------------- 1 ----------------
341
341
| ValueError: 1
342
342
+------------------------------------
343
- >>>
344
343
345
- Any remaining exceptions that were not handled by any except* clause
346
- are re-raised at the end, combined into an exception group along with
347
- all exceptions that were raised from within except* clauses.
344
+ Any remaining exceptions that were not handled by any :keyword: ` ! except*`
345
+ clause are re-raised at the end, combined into an exception group along with
346
+ all exceptions that were raised from within :keyword: ` ! except*` clauses.
348
347
349
- An except* clause must have a matching type, and this type cannot be a
350
- subclass of :exc:`BaseExceptionGroup`. It is not possible to mix except
351
- and except* in the same :keyword:`try`. :keyword:`break`,
352
- :keyword:`continue` and :keyword:`return` cannot appear in an except*
353
- clause.
348
+ An :keyword: `!except* ` clause must have a matching type,
349
+ and this type cannot be a subclass of :exc: `BaseExceptionGroup `.
350
+ It is not possible to mix :keyword: `except ` and :keyword: `!except* `
351
+ in the same :keyword: `try `.
352
+ :keyword: `break `, :keyword: `continue ` and :keyword: `return `
353
+ cannot appear in an :keyword: `!except* ` clause.
354
354
355
355
356
356
.. index ::
You can’t perform that action at this time.
0 commit comments