mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
8
Python/clinic/bltinmodule.c.h
generated
8
Python/clinic/bltinmodule.c.h
generated
|
@ -693,10 +693,10 @@ PyDoc_STRVAR(builtin_anext__doc__,
|
|||
"anext($module, aiterator, default=<unrepresentable>, /)\n"
|
||||
"--\n"
|
||||
"\n"
|
||||
"async anext(aiterator[, default])\n"
|
||||
"Return the next item from the async iterator.\n"
|
||||
"\n"
|
||||
"Return the next item from the async iterator. If default is given and the async\n"
|
||||
"iterator is exhausted, it is returned instead of raising StopAsyncIteration.");
|
||||
"If default is given and the async iterator is exhausted,\n"
|
||||
"it is returned instead of raising StopAsyncIteration.");
|
||||
|
||||
#define BUILTIN_ANEXT_METHODDEF \
|
||||
{"anext", _PyCFunction_CAST(builtin_anext), METH_FASTCALL, builtin_anext__doc__},
|
||||
|
@ -1193,4 +1193,4 @@ builtin_issubclass(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
|
|||
exit:
|
||||
return return_value;
|
||||
}
|
||||
/*[clinic end generated code: output=643a8d5f900e0c36 input=a9049054013a1b77]*/
|
||||
/*[clinic end generated code: output=6d15edfc194b2c08 input=a9049054013a1b77]*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue