產生器物件
**********

Generator objects are what Python uses to implement generator
iterators. They are normally created by iterating over a function that
yields values, rather than explicitly calling "PyGen_New()" or
"PyGen_NewWithQualName()".

PyGenObject

   The C structure used for generator objects.

PyTypeObject PyGen_Type

   The type object corresponding to generator objects.

int PyGen_Check(PyObject *ob)

   如果 *ob* 是一个生成器对象则返回真值；*ob* 必须不为 "NULL"。

int PyGen_CheckExact(PyObject *ob)

   如果 *ob* 的类型为 "PyGen_Type" 则返回真值；*ob* 必须不为 "NULL"。

PyObject* PyGen_New(PyFrameObject *frame)
    *Return value: New reference.*

   基于 *frame* 对象创建并返回一个新的生成器对象。 此函数会取走一个对
   *frame* 的引用。 参数必须不为 "NULL"。

PyObject* PyGen_NewWithQualName(PyFrameObject *frame, PyObject *name, PyObject *qualname)
    *Return value: New reference.*

   基于 *frame* 对象创建并返回一个新的生成器对象，其中 "__name__" 和
   "__qualname__" 设为 *name* 和 *qualname*。 此函数会取走一个对
   *frame* 的引用。 *frame* 参数必须不为 "NULL"。
