Lines Matching +full:is +full:- +full:generator +full:- +full:function
3 .. _gen-objects:
5 Generator Objects
6 -----------------
8 Generator objects are what Python uses to implement generator iterators. They
9 are normally created by iterating over a function that yields values, rather
15 The C structure used for generator objects.
20 The type object corresponding to generator objects.
23 .. c:function:: int PyGen_Check(PyObject *ob)
25 Return true if *ob* is a generator object; *ob* must not be ``NULL``. This
26 function always succeeds.
29 .. c:function:: int PyGen_CheckExact(PyObject *ob)
31 Return true if *ob*'s type is :c:type:`PyGen_Type`; *ob* must not be
32 ``NULL``. This function always succeeds.
35 .. c:function:: PyObject* PyGen_New(PyFrameObject *frame)
37 Create and return a new generator object based on the *frame* object.
38 A reference to *frame* is stolen by this function. The argument must not be
41 .. c:function:: PyObject* PyGen_NewWithQualName(PyFrameObject *frame, PyObject *name, PyObject *qua…
43 Create and return a new generator object based on the *frame* object,
45 A reference to *frame* is stolen by this function. The *frame* argument