[issue43918] anext builtin docstring has no signature text or info about default argument
Erik Welch
report at bugs.python.org
Thu Apr 22 23:30:06 EDT 2021
New submission from Erik Welch <erik.n.welch at gmail.com>:
The new builtin `anext` does not have a signature (from `inspect.signature(anext)`). This is expected, because `inspect` does not yet support signatures with C NULL default value. However, `anext` also doesn't have text in its docstring that describes its signature as is typical for builtins. This means `help(anext)` in the Python REPL gives no indication how to call the function. It should.
This is clearly an oversight. See comment here: https://github.com/python/cpython/pull/23847#commitcomment-45318696
Also, the "default" argument is not described in the docstring.
Related issue: https://bugs.python.org/issue31861
(PR forthcoming)
----------
components: Interpreter Core
messages: 391650
nosy: eriknw, pablogsal
priority: normal
severity: normal
status: open
title: anext builtin docstring has no signature text or info about default argument
type: enhancement
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43918>
_______________________________________
More information about the Python-bugs-list
mailing list