You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python3.11: invalid help query raises an ImportError #98374
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "<frozen _sitebuiltins>", line 103, in __call__
File "/usr/lib/python3.11/pydoc.py", line 2001, in __call__
self.help(request)
File "/usr/lib/python3.11/pydoc.py", line 2057, in help
elif request: doc(request, 'Help on %s:', output=self._output)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/pydoc.py", line 1784, in doc
pager(render_doc(thing, title, forceload))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/pydoc.py", line 1758, in render_doc
object, name = resolve(thing, forceload)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/pydoc.py", line 1744, in resolve
raise ImportError('''\
ImportError: No Python documentation found for 'invalid query'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.
Python 3.10.8 (and most probably any 3.10.*) simply prints this:
No Python documentation found for 'invalid query'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.
Your environment
CPython versions tested on: 3.11.0, 3.10.8
Operating system and architecture: EndeavourOS, kernel: 6.0.1-arch2-1 (64-bit)
Activity
iritkatriel commentedon Oct 18, 2022
Possibly due to #27868.
qexat commentedon Oct 18, 2022
Indeed, the commit I mention was present in this PR.
pythongh-98374: Suppress ImportError for invalid query for help() com…
pythongh-98374: Suppress ImportError for invalid query for help() com…
pythongh-98374: Suppress ImportError for invalid query for help() com…
gh-98374: Suppress ImportError for invalid query for help() command. (g…
[3.11] pythongh-98374: Suppress ImportError for invalid query for hel…
[3.11] gh-98374: Suppress ImportError for invalid query for help() co… (
Merge branch 'main' into typewatch
terryjreedy commentedon Jun 12, 2023
(EDIT) This fix did not catch all cases. See #102541 for
help()...help> invalidgiving a traceback ending in the same place with the same result.