This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Help missing for exec and print
Type: behavior Stage: resolved
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: bkabrda, docs@python, eric.araujo, ezio.melotti, georg.brandl, python-dev, sandro.tosi
Priority: normal Keywords: patch

Created on 2013-11-21 12:29 by bkabrda, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue19680.diff ezio.melotti, 2013-11-25 03:45
Messages (6)
msg203625 - (view) Author: Bohuslav "Slavek" Kabrda (bkabrda) * Date: 2013-11-21 12:29
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.

[1] http://hg.python.org/cpython/rev/76aa98f69251
msg203867 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2013-11-22 20:49
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.
msg204291 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-11-25 03:45
Attached patch seems to fix the issue.
msg204306 - (view) Author: Bohuslav "Slavek" Kabrda (bkabrda) * Date: 2013-11-25 08:03
Seems that Ezio was faster :)
Yep, the attached patch does seem to solve the issue.
msg211199 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-02-14 05:04
New changeset cc62d856fc5f by Ezio Melotti in branch '2.7':
#19680: add back documentation for print and exec in the interactive help.
http://hg.python.org/cpython/rev/cc62d856fc5f
msg211200 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2014-02-14 05:05
Fixed, thanks for the report!
History
Date User Action Args
2022-04-11 14:57:53adminsetgithub: 63879
2014-02-14 05:05:02ezio.melottisetstatus: open -> closed
resolution: fixed
messages: + msg211200

stage: patch review -> resolved
2014-02-14 05:04:33python-devsetnosy: + python-dev
messages: + msg211199
2013-11-25 08:03:08bkabrdasetmessages: + msg204306
2013-11-25 03:45:56ezio.melottisetfiles: + issue19680.diff

type: behavior
assignee: docs@python -> ezio.melotti

keywords: + patch
nosy: + ezio.melotti, georg.brandl
messages: + msg204291
stage: patch review
2013-11-22 20:49:33eric.araujosetnosy: + sandro.tosi, eric.araujo
messages: + msg203867
2013-11-21 12:29:45bkabrdacreate