Skip to content

No Python documentation found for 'match' #132783

Description

@dzherb

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

Activity

  1. StanFromIreland commented on Apr 21, 2025

    @StanFromIreland
    Member

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

  2. ami4411 commented on Apr 22, 2025

    @ami4411

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

  3. sobolevn commented on May 6, 2025

    @sobolevn
    Member

    This is a duplicate of #105895
    Let's continue there.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions