[issue19680] Help missing for exec and print
New submission from Bohuslav "Slavek" Kabrda: 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 ---------- assignee: docs@python components: Documentation messages: 203625 nosy: bkabrda, docs@python priority: normal severity: normal status: open title: Help missing for exec and print versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19680> _______________________________________
Éric Araujo added the comment: 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. ---------- nosy: +eric.araujo, sandro.tosi _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19680> _______________________________________
Ezio Melotti added the comment: Attached patch seems to fix the issue. ---------- assignee: docs@python -> ezio.melotti keywords: +patch nosy: +ezio.melotti, georg.brandl stage: -> patch review type: -> behavior Added file: http://bugs.python.org/file32826/issue19680.diff _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19680> _______________________________________
Bohuslav "Slavek" Kabrda added the comment: Seems that Ezio was faster :) Yep, the attached patch does seem to solve the issue. ---------- _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19680> _______________________________________
Roundup Robot added the comment: 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 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19680> _______________________________________
Ezio Melotti added the comment: Fixed, thanks for the report! ---------- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue19680> _______________________________________
participants (4)
-
Bohuslav "Slavek" Kabrda -
Ezio Melotti -
Roundup Robot -
Éric Araujo