[Python-checkins] gh-98172: Fix formatting in `except*` docs (GH-98173)
miss-islington
webhook-mailer at python.org
Tue Oct 11 12:22:10 EDT 2022
https://github.com/python/cpython/commit/9b12084aca1a2072f0333dbc562e52d8dc0235bd
commit: 9b12084aca1a2072f0333dbc562e52d8dc0235bd
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-11T09:22:04-07:00
summary:
gh-98172: Fix formatting in `except*` docs (GH-98173)
(cherry picked from commit 5ecf961640192a2192383aa20e1e93dcdf23c9b6)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra at gmail.com>
files:
M Doc/reference/compound_stmts.rst
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index d914686c0a1a..896348183643 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -363,18 +363,17 @@ one :keyword:`!except*` clause, the first that matches it. ::
+-+---------------- 1 ----------------
| ValueError: 1
+------------------------------------
- >>>
-
- Any remaining exceptions that were not handled by any :keyword:`!except*`
- clause are re-raised at the end, combined into an exception group along with
- all exceptions that were raised from within :keyword:`!except*` clauses.
-
- An :keyword:`!except*` clause must have a matching type,
- and this type cannot be a subclass of :exc:`BaseExceptionGroup`.
- It is not possible to mix :keyword:`except` and :keyword:`!except*`
- in the same :keyword:`try`.
- :keyword:`break`, :keyword:`continue` and :keyword:`return`
- cannot appear in an :keyword:`!except*` clause.
+
+Any remaining exceptions that were not handled by any :keyword:`!except*`
+clause are re-raised at the end, combined into an exception group along with
+all exceptions that were raised from within :keyword:`!except*` clauses.
+
+An :keyword:`!except*` clause must have a matching type,
+and this type cannot be a subclass of :exc:`BaseExceptionGroup`.
+It is not possible to mix :keyword:`except` and :keyword:`!except*`
+in the same :keyword:`try`.
+:keyword:`break`, :keyword:`continue` and :keyword:`return`
+cannot appear in an :keyword:`!except*` clause.
.. index::
More information about the Python-checkins
mailing list