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
Help missing for exec and print #63879
Comments
Steps to reproduce: [bkabrda@zizalka python]$ python
>>> help()
help> keywords
<snip>
# prints lots of keywords including "print" and "exec"
</snip>
help> print
no documentation found for 'print' So either keywords should not list "print" and "exec" or the documentation for them should be built. IIUC, the help for these should be part of pydoc_data/topics.py, which gets generated by Doc/tools/sphinxext/pyspecific.py. However, in revision [1] some topics got removed ("print" and "exec" amongst them) without the commit message saying anything helpful. Either way, this is inconsistent and should be fixed (assuming that Python 2.7 is still supposed to get this sort of fixes). Thanks. |
The changeset you refer to may be a backport of a Python 3 changeset, where print and exec are not keywords but functions (adding Sandro to nosy so that he may confirm). Would you like to make a patch to fix this in 2.7? http://docs.python.org/devguide contains more info about that. |
Attached patch seems to fix the issue. |
Seems that Ezio was faster :) |
New changeset cc62d856fc5f by Ezio Melotti in branch '2.7': |
Fixed, thanks for the report! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: