mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
gh-117764: Fix and add signatures for many builtins (GH-117769)
This commit is contained in:
parent
94e9c35cd0
commit
3a8c1ca7e7
11 changed files with 45 additions and 30 deletions
|
@ -475,7 +475,7 @@ builtin_breakpoint(PyObject *self, PyObject *const *args, Py_ssize_t nargs, PyOb
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(breakpoint_doc,
|
||||
"breakpoint(*args, **kws)\n\
|
||||
"breakpoint($module, /, *args, **kws)\n\
|
||||
--\n\
|
||||
\n\
|
||||
Call sys.breakpointhook(*args, **kws). sys.breakpointhook() must accept\n\
|
||||
|
@ -1703,16 +1703,16 @@ anext as builtin_anext
|
|||
default: object = NULL
|
||||
/
|
||||
|
||||
async anext(aiterator[, default])
|
||||
Return the next item from the async iterator.
|
||||
|
||||
Return the next item from the async iterator. If default is given and the async
|
||||
iterator is exhausted, it is returned instead of raising StopAsyncIteration.
|
||||
If default is given and the async iterator is exhausted,
|
||||
it is returned instead of raising StopAsyncIteration.
|
||||
[clinic start generated code]*/
|
||||
|
||||
static PyObject *
|
||||
builtin_anext_impl(PyObject *module, PyObject *aiterator,
|
||||
PyObject *default_value)
|
||||
/*[clinic end generated code: output=f02c060c163a81fa input=8f63f4f78590bb4c]*/
|
||||
/*[clinic end generated code: output=f02c060c163a81fa input=2900e4a370d39550]*/
|
||||
{
|
||||
PyTypeObject *t;
|
||||
PyObject *awaitable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue