cpython: 9f32ef6b210b (original) (raw)

--- a/Objects/genobject.c +++ b/Objects/genobject.c @@ -1503,14 +1503,14 @@ PyAsyncGen_ClearFreeLists(void) _PyAsyncGenWrappedValue *o; o = ag_value_freelist[--ag_value_freelist_free]; assert(_PyAsyncGenWrappedValue_CheckExact(o));

+} + static PyObject * async_gen_asend_send(PyAsyncGenASend *o, PyObject arg) @@ -1668,9 +1677,9 @@ PyTypeObject _PyAsyncGenASend_Type = { PyObject_GenericGetAttr, / tp_getattro / 0, / tp_setattro / 0, / tp_as_buffer */

@@ -1712,6 +1721,8 @@ async_gen_asend_new(PyAsyncGenObject *ge o->ags_sendval = sendval; o->ags_state = AWAITABLE_STATE_INIT; +

@@ -1722,16 +1733,26 @@ async_gen_asend_new(PyAsyncGenObject *ge static void async_gen_wrapped_val_dealloc(_PyAsyncGenWrappedValue *o) {

+{

+} + + PyTypeObject _PyAsyncGenWrappedValue_Type = { PyVarObject_HEAD_INIT(&PyType_Type, 0) "async_generator_wrapped_value", /* tp_name / @@ -1753,9 +1774,9 @@ PyTypeObject _PyAsyncGenWrappedValue_Typ PyObject_GenericGetAttr, / tp_getattro / 0, / tp_setattro / 0, / tp_as_buffer */

@@ -1804,9 +1827,19 @@ PyObject * static void async_gen_athrow_dealloc(PyAsyncGenAThrow *o) {

+} + + +static int +async_gen_athrow_traverse(PyAsyncGenAThrow *o, visitproc visit, void *arg) +{

} @@ -1990,9 +2023,9 @@ PyTypeObject _PyAsyncGenAThrow_Type = { PyObject_GenericGetAttr, /* tp_getattro / 0, / tp_setattro / 0, / tp_as_buffer */