[New-bugs-announce] [issue43918] anext builtin docstring has no signature text or info about default argument
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
components: Interpreter Core
nosy: eriknw, pablogsal
title: anext builtin docstring has no signature text or info about default argument
versions: Python 3.10
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce