Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-84232: Fix doc links in module help() output #29419

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

zware
Copy link
Member

@zware zware 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

Lib/pydoc.py Outdated Show resolved Hide resolved
Lib/pydoc.py Outdated Show resolved Hide resolved
Lib/pydoc_data/topics.py Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Dec 9, 2021

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

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Dec 9, 2021
@zware zware changed the title bpo-40051: Fix doc links in module help() output gh-84232: Fix doc links in module help() output Sep 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.
@zware zware removed the stale Stale PR or inactive for long period of time. label Sep 27, 2024
Sign up for free to 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.

5 participants