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.
I wonder if there are other cases of this, I presume there are if these were missed.
I have come across several during development, which suggests that it is likely more cases have gone unnoticed.
This is a duplicate of #105895 Let's continue there.
Merge branch 'python:main' into pythongh-132783-match-help
Merge remote-tracking branch 'origin/pythongh-132783-match-help' into p…
Activity
StanFromIreland commented on Apr 21, 2025
I wonder if there are other cases of this, I presume there are if these were missed.
ami4411 commented on Apr 22, 2025
I have come across several during development, which suggests that it is likely more cases have gone unnoticed.
sobolevn commented on May 6, 2025
This is a duplicate of #105895
Let's continue there.
Merge branch 'python:main' into pythongh-132783-match-help
Merge remote-tracking branch 'origin/pythongh-132783-match-help' into p…