Skip to content

Commit 1224561

Browse files
committed
docs(genobject): note dealloc dependency in asend finalizer
1 parent ac03ae1 commit 1224561

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Objects/genobject.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2186,6 +2186,7 @@ static void
21862186
async_gen_asend_finalize(PyObject *self)
21872187
{
21882188
PyAsyncGenASend *ags = _PyAsyncGenASend_CAST(self);
2189+
// async_gen_asend_dealloc() calls this only in the INIT state.
21892190
if (ags->ags_state == AWAITABLE_STATE_INIT) {
21902191
_PyErr_WarnUnawaitedAgenMethod(ags->ags_gen, &_Py_ID(asend));
21912192
}

0 commit comments

Comments
 (0)