2 /* Generator object interface */
10 struct _frame
; /* Avoid including frameobject.h */
14 /* The gi_ prefix is intended to remind of generator-iterator. */
16 struct _frame
*gi_frame
;
18 /* True if generator is being executed. */
21 /* List of weak reference. */
22 PyObject
*gi_weakreflist
;
25 PyAPI_DATA(PyTypeObject
) PyGen_Type
;
27 #define PyGen_Check(op) PyObject_TypeCheck(op, &PyGen_Type)
28 #define PyGen_CheckExact(op) ((op)->ob_type == &PyGen_Type)
30 PyAPI_FUNC(PyObject
*) PyGen_New(struct _frame
*);
35 #endif /* !Py_GENOBJECT_H */