Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Currently,help will show a traceback when we type name of something which doesn't exist:
help>123Traceback (mostrecentcalllast):File"<stdin>",line1,in<module>File"<frozen _sitebuiltins>",line103,in__call__File"C:\Users\KIRILL-1\CLionProjects\cpython\Lib\pydoc.py",line2004,in__call__self.interact()File"C:\Users\KIRILL-1\CLionProjects\cpython\Lib\pydoc.py",line2031,ininteractself.help(request)File"C:\Users\KIRILL-1\CLionProjects\cpython\Lib\pydoc.py",line2057,inhelpelifrequest:doc(request,'Help on %s:',output=self._output)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"C:\Users\KIRILL-1\CLionProjects\cpython\Lib\pydoc.py",line1781,indocpager(render_doc(thing,title,forceload))^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"C:\Users\KIRILL-1\CLionProjects\cpython\Lib\pydoc.py",line1755,inrender_docobject,name=resolve(thing,forceload)^^^^^^^^^^^^^^^^^^^^^^^^^File"C:\Users\KIRILL-1\CLionProjects\cpython\Lib\pydoc.py",line1741,inresolveraiseImportError('''\ImportError: No Python documentation found for '123'.Use help() to get the interactive help utility.Use help(str) for help on the str class.>>>
I think, this shouldn't be shown.
Is there any reason for this?
Can we show something likeNo python documentation found for '123'.?
Reproducible on current main.
Linked PRs
- gh-102541: Hide traceback in help prompt #102614
- [3.12] gh-102541: Hide traceback in help prompt (gh-102614) #105778
- [3.11] gh-102541: Hide traceback in help prompt (gh-102614). #105830
- gh-102541: Fix Helper.help("mod") for non-existent mod #105934
- [3.12] gh-102541: Fix Helper.help("mod") for non-existent mod (GH-105934) #106322
- [3.11] gh-102541: Fix Helper.help("mod") for non-existent mod (GH-105934) #106323
- gh-102541: Add test case for help() for non_existent_module #106340
- [3.12] gh-102541: Add test case for help() for non_existent_module (GH-106340) #106639
- [3.11] gh-102541: Add test case for help() for non_existent_module (GH-106340) #106640
Metadata
Metadata
Assignees
Labels
Projects
Status
Done