@@ -813,8 +813,7 @@ static PyAsyncMethods gen_as_async = {
813
813
PyTypeObject PyGen_Type = {
814
814
PyVarObject_HEAD_INIT (& PyType_Type , 0 )
815
815
"generator" , /* tp_name */
816
- offsetof(PyGenObject , gi_iframe ) +
817
- offsetof(_PyInterpreterFrame , localsplus ), /* tp_basicsize */
816
+ sizeof (PyGenObject ), /* tp_basicsize */
818
817
sizeof (PyObject * ), /* tp_itemsize */
819
818
/* methods */
820
819
(destructor )gen_dealloc , /* tp_dealloc */
@@ -1165,8 +1164,7 @@ static PyAsyncMethods coro_as_async = {
1165
1164
PyTypeObject PyCoro_Type = {
1166
1165
PyVarObject_HEAD_INIT (& PyType_Type , 0 )
1167
1166
"coroutine" , /* tp_name */
1168
- offsetof(PyCoroObject , cr_iframe ) +
1169
- offsetof(_PyInterpreterFrame , localsplus ), /* tp_basicsize */
1167
+ sizeof (PyCoroObject ), /* tp_basicsize */
1170
1168
sizeof (PyObject * ), /* tp_itemsize */
1171
1169
/* methods */
1172
1170
(destructor )gen_dealloc , /* tp_dealloc */
@@ -1581,8 +1579,7 @@ static PyAsyncMethods async_gen_as_async = {
1581
1579
PyTypeObject PyAsyncGen_Type = {
1582
1580
PyVarObject_HEAD_INIT (& PyType_Type , 0 )
1583
1581
"async_generator" , /* tp_name */
1584
- offsetof(PyAsyncGenObject , ag_iframe ) +
1585
- offsetof(_PyInterpreterFrame , localsplus ), /* tp_basicsize */
1582
+ sizeof (PyAsyncGenObject ), /* tp_basicsize */
1586
1583
sizeof (PyObject * ), /* tp_itemsize */
1587
1584
/* methods */
1588
1585
(destructor )gen_dealloc , /* tp_dealloc */
0 commit comments