New submission from Erik Welch <erik.n.we...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue43918>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to