This repository has been archived on 2025-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
PyBitmessage-2025-01-28/mockenv/lib/python3.6/site-packages/Cython/Includes/cpython/genobject.pxd
2022-07-22 16:13:59 +05:30

26 lines
1.0 KiB
Cython

from .pystate cimport PyFrameObject
cdef extern from "Python.h":
###########################################################################
# Generator Objects
###########################################################################
bint PyGen_Check(object ob)
# Return true if ob is a generator object; ob must not be NULL.
bint PyGen_CheckExact(object ob)
# Return true if ob's type is PyGen_Type; ob must not be NULL.
object PyGen_New(PyFrameObject *frame)
# Return value: New reference.
# Create and return a new generator object based on the frame object. A
# reference to frame is stolen by this function. The argument must not be
# NULL.
object PyGen_NewWithQualName(PyFrameObject *frame, object name, object qualname)
# Return value: New reference.
# Create and return a new generator object based on the frame object, with
# __name__ and __qualname__ set to name and qualname. A reference to frame
# is stolen by this function. The frame argument must not be NULL.