GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Ref target labels for except/except*/finally not located precisely · Issue #95975 · python/cpython

Ref target labels for except/except*/finally not located precisely #95975

New issue
Copy link
New issue
Copy link
Closed
Closed
Ref target labels for except/except*/finally not located precisely#95975
Copy link
Assignees
CAM-Gerlach
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir

Description

@CAM-Gerlach
CAM-Gerlach
opened on Aug 14, 2022
Issue body actions

As originally noticed by @ezio-melotti on #95937 , the ref target labels for the except, except* and finally keywords are located at the top of the [try statement section in the Compound Statements][(https://docs.python.org/3.11/reference/compound_stmts.html#the-try-statement) reference; however, they are actually discussed at specific points sometimes several pages down in the lengthy section. Therefore, the targets should be moved to more precise locations immediately prior to the introduction of the relevant keyword.

It would also be nice to make the section either to navigate with sub sections rather than one big long section, but that is considered outside the immediate scope of this proximate issue. It turns out this is required to get :keyword: to work, and the section is already organized by clause, so it makes sense just to add them.

Activity

  1. CAM-Gerlach
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Aug 14, 2022
  2. CAM-Gerlach
    self-assigned this
    on Aug 14, 2022
  3. CAM-Gerlach
    added 2 commits that reference this issue on Aug 14, 2022

    pythongh-95975: Move except/*/finally ref labels to more precise loca…

    23e1b84

    pythongh-95975: Move except/*/finally ref labels to more precise loca…

    f741f38
  4. CAM-Gerlach commented on Aug 14, 2022

    @CAM-Gerlach
    CAM-Gerlach
    on Aug 14, 2022
    MemberAuthor
    More actions

    The plot thickens—for no obvious reason, it seems :keyword: simply won't work with ref target labels that don't precede a section header (or at least some named object), which is presumably why they were put there in the first place. However, given it would make navigating what has become a quite long section easier, and requires no textual changes given the section is already strongly organized by clause type, I can just add the appropriate subsection headers to fix this, given it improves both internal and external navigation.

    Reacted by Ezio Melotti
    Reacted by Ezio Melotti
  5. CAM-Gerlach commented on Aug 14, 2022

    @CAM-Gerlach
    CAM-Gerlach
    on Aug 14, 2022
    MemberAuthor
    More actions

    @najmiehsa Sorry, I already submitted #95976 — it ended up being not as trivial as I thought in any case.

  6. ezio-melotti
    added a commit that references this issue on Oct 2, 2022

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

    dcc8233
  7. miss-islington
    added 2 commits that reference this issue on Oct 2, 2022

    pythongh-95975: Move except/*/finally ref labels to more precise loca…

    4fee86b

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

    1fa848a
  8. serhiy-storchaka
    added a commit that references this issue on Oct 2, 2022

    pythongh-95975: Move except/*/finally ref labels to more precise loca…

    879e866
  9. carljm
    added a commit that references this issue on Oct 3, 2022

    Merge branch 'main' into dictwatch

    e83abac
  10. pablogsal
    added a commit that references this issue on Oct 22, 2022

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

    d79a412
  11. hauntsaninja commented on Sep 7, 2023

    @hauntsaninja
    hauntsaninja
    on Sep 7, 2023
    Contributor
    More actions

    Thanks all!

  12. hauntsaninja
    closed this as completedon Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @CAM-Gerlach
    CAM-Gerlach

Labels

docsDocumentation in the Doc dirDocumentation in the Doc dir

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.