]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-95975: Move except/*/finally ref labels to more precise locations (GH-95976)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 Oct 2022 05:20:43 +0000 (22:20 -0700)
committerGitHub <noreply@github.com>
Sun, 2 Oct 2022 05:20:43 +0000 (22:20 -0700)
commit1fa848ac396d8eef807589bfbd5782dcb97acce9
treeeff4c552d350eb07daa79d8ef0ed94e390320ccd
parentdbde686a49c2d0d7ce476d134f8daffd636382df
gh-95975: Move except/*/finally ref labels to more precise locations (GH-95976)

* gh-95975: Move except/*/finally ref labels to more precise locations

* Add section headers to fix :keyword: role and aid navigation

* Move see also to the introduction rather than a particular subsection

* Fix other minor Sphinx syntax issues with except

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
* Suppress redundant link to same section for except too

* Don't link try/except/else/finally keywords if in the same section

* Format try/except/finally as keywords in modified sections

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit dcc82331c8f05a6a149ac15c519d4fbae72692b2)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Doc/reference/compound_stmts.rst