Skip to content

[3.11] gh-95975: Move except/*/finally ref labels to more precise locations (GH-95976) - #97722

Merged
miss-islington merged 1 commit into
python:3.11from
miss-islington:backport-dcc8233-3.11
Oct 2, 2022
Merged

miss-islington merged 1 commit into
python:3.11from
miss-islington:backport-dcc8233-3.11

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

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 dcc8233)

Co-authored-by: C.A.M. Gerlach CAM.Gerlach@Gerlach.CAM

…tions (pythonGH-95976)

* pythongh-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 dcc8233)

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
@miss-islington

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅.

@miss-islington
miss-islington merged commit 1fa848a into python:3.11 Oct 2, 2022
@miss-islington
miss-islington deleted the backport-dcc8233-3.11 branch October 2, 2022 05:20
@miss-islington

Copy link
Copy Markdown
Contributor Author

Status check is done, and it's a success ✅.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

4 participants