summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-04-12 10:56:41 (GMT)
committerGitHub <noreply@github.com>2024-04-12 10:56:41 (GMT)
commit3a8c1ca7e7ce181ddb29c9393171d5c508ce89c8 (patch)
tree9503a1be17bd94635c29b1452afebb5bdb84dba5 /Python/bltinmodule.c
parent94e9c35cd0f2898693bb96eb1579fe0329648fa2 (diff)
downloadcpython-3a8c1ca7e7ce181ddb29c9393171d5c508ce89c8.zip
cpython-3a8c1ca7e7ce181ddb29c9393171d5c508ce89c8.tar.gz
cpython-3a8c1ca7e7ce181ddb29c9393171d5c508ce89c8.tar.bz2
gh-117764: Fix and add signatures for many builtins (GH-117769)
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index f66a8c0..7af3ac9 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -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;