Skip to content

Commit da35c4e

Browse files
committed
update comment
1 parent 13d6ac7 commit da35c4e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Objects/iterobject.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,8 @@ anextawaitable_proxy(anextawaitableobject *obj, char *meth, PyObject *arg)
414414
if (awaitable == NULL) {
415415
return NULL;
416416
}
417+
// When specified, 'arg' may be a tuple (if coming from a METH_VARARGS
418+
// method) or a single object (if coming from a METH_O method).
417419
PyObject *ret = arg == NULL
418420
? PyObject_CallMethod(awaitable, meth, NULL)
419421
: PyObject_CallMethod(awaitable, meth, "O", arg);

0 commit comments

Comments
 (0)