Skip to content

Conversation

@zware
Copy link
Member

@zwarezware commented Nov 5, 2021

An explicit mapping of module names to documentation names is added to
pydoc_data.topics and is used by pydoc's getdocloc function to
generate more-correct URLs in more cases without special-casing
particular modules. In some cases (tkinter.simpledialog, lib2to3, etc.)
this corrects the displayed link to give a real page and in other cases
(private or undocumented modules) removes what was previously an
incorrect link entirely.

https://bugs.python.org/issue40051

@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actionsgithub-actionsbot added the stale Stale PR or inactive for long period of time. label Dec 9, 2021
@zwarezware changed the title bpo-40051: Fix doc links in module help() outputgh-84232: Fix doc links in module help() outputSep 27, 2024
An explicit mapping of module names to documentation names is added to pydoc_data.topics and is used by pydoc's `getdocloc` function to generate more-correct URLs in more cases without special-casing particular modules. In some cases this corrects the displayed link to give a real page and in other cases removes what was previously an incorrect link entirely.
@zwarezware removed the stale Stale PR or inactive for long period of time. label Sep 27, 2024
@StanFromIreland
Copy link
Member

I missed this PR and opened #139995, which is a similar approach. What do you want to do Zachary? I can close mine.

@StanFromIreland
Copy link
Member

Completed in f9704f1

@zwarezware deleted the pydoc_link_fix branch December 23, 2025 15:07
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@zware@StanFromIreland@merwok@the-knights-who-say-ni@ezio-melotti@bedevere-bot