Skip to content

No Python documentation found for 'match' #132783

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

Open
dzherb opened this issue Apr 21, 2025 · 2 comments
Open

No Python documentation found for 'match' #132783

dzherb opened this issue Apr 21, 2025 · 2 comments
Labels
docs Documentation in the Doc dir type-bug An unexpected behavior, bug, or error

Comments

@dzherb
Copy link

dzherb commented Apr 21, 2025

Documentation

I noticed that the help() function does not return any documentation for the match statement:

help('match')  # No Python documentation found for 'match'

This appears to be because the match keyword is missing from the keywords attribute of the pydoc.Helper class, which is used to look up help topics.

To fix this, "match" (and possibly "case", for completeness) should be added to the keywords dictionary.

Linked PRs

@StanFromIreland
Copy link
Contributor

I wonder if there are other cases of this, I presume there are if these were missed.

@ami4411
Copy link

ami4411 commented Apr 22, 2025

I have come across several during development, which suggests that it is likely more cases have gone unnoticed.

@picnixz picnixz added the type-bug An unexpected behavior, bug, or error label Apr 24, 2025
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 type-bug An unexpected behavior, bug, or error
Projects
Status: Todo
Development

No branches or pull requests

4 participants