summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/sys.rst2
-rw-r--r--Python/sysmodule.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index af0eae6..62783a4 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -1641,7 +1641,7 @@ always available.
``'opcode'`` event type added; :attr:`~frame.f_trace_lines` and
:attr:`~frame.f_trace_opcodes` attributes added to frames
-.. function:: set_asyncgen_hooks(firstiter, finalizer)
+.. function:: set_asyncgen_hooks([firstiter] [, finalizer])
Accepts two optional keyword arguments which are callables that accept an
:term:`asynchronous generator iterator` as an argument. The *firstiter*
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 14f4447..7874920 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -1361,7 +1361,7 @@ sys_set_asyncgen_hooks(PyObject *self, PyObject *args, PyObject *kw)
}
PyDoc_STRVAR(set_asyncgen_hooks_doc,
-"set_asyncgen_hooks(* [, firstiter] [, finalizer])\n\
+"set_asyncgen_hooks([firstiter] [, finalizer])\n\
\n\
Set a finalizer for async generators objects."
);