-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
help() breaks on Python 3.15 after help("modules") #147952
Copy link
Copy link
Closed as not planned
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Bug report
Bug description:
On Python 3.15 alpha 7, after running help("modules"), the help() function breaks.
Run:
>>> help("modules")Then pass an object to the help function and see a traceback:
>>> help(list)
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
help(list)
~~~~^^^^^^
File "<frozen _sitebuiltins>", line 91, in __call__
File "/home/trey/.local/share/uv/python/cpython-3.15.0a7-linux-x86_64-gnu/lib/python3.15/pydoc.py", line 1989, in __call__
self.help(request)
~~~~~~~~~^^^^^^^^^
File "/home/trey/.local/share/uv/python/cpython-3.15.0a7-linux-x86_64-gnu/lib/python3.15/pydoc.py", line 2051, in help
else: doc(request, 'Help on %s:', output=self._output, is_cli=is_cli)
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/trey/.local/share/uv/python/cpython-3.15.0a7-linux-x86_64-gnu/lib/python3.15/pydoc.py", line 1731, in doc
pager(render_doc(thing, title, forceload), f'Help on {what!s}')
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/trey/.local/share/uv/python/cpython-3.15.0a7-linux-x86_64-gnu/lib/python3.15/pydoc.py", line 1716, in render_doc
return title % desc + '\n\n' + renderer.document(object, name)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/home/trey/.local/share/uv/python/cpython-3.15.0a7-linux-x86_64-gnu/lib/python3.15/pydoc.py", line 464, in document
if inspect.isclass(object): return self.docclass(*args)
~~~~~~~~~~~~~^^^^^^^
File "/home/trey/.local/share/uv/python/cpython-3.15.0a7-linux-x86_64-gnu/lib/python3.15/pydoc.py", line 1370, in docclass
doc = getdoc(object)
File "/home/trey/.local/share/uv/python/cpython-3.15.0a7-linux-x86_64-gnu/lib/python3.15/pydoc.py", line 118, in getdoc
result = _getdoc(object) or inspect.getcomments(object)
~~~~~~~^^^^^^^^
File "/home/trey/.local/share/uv/python/cpython-3.15.0a7-linux-x86_64-gnu/lib/python3.15/pydoc.py", line 112, in _getdoc
return inspect.getdoc(object,
~~~~~~~~~~~~~~^^^^^^^^
fallback_to_class_doc=False,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
inherit_class_doc=False)
^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: _getdoc() got an unexpected keyword argument 'fallback_to_class_doc'This is an issue I've been hitting pretty consistently when the Python 3.15 while teaching recently.
CPython versions tested on:
3.15
Operating systems tested on:
Linux
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error