cython

Форк
0
/
genobject.pxd 
25 строк · 1.0 Кб
1
from .pystate cimport PyFrameObject
2

3
cdef extern from "Python.h":
4

5
    ###########################################################################
6
    # Generator Objects
7
    ###########################################################################
8

9
    bint PyGen_Check(object ob)
10
    # Return true if ob is a generator object; ob must not be NULL.
11

12
    bint PyGen_CheckExact(object ob)
13
    # Return true if ob's type is PyGen_Type; ob must not be NULL.
14

15
    object PyGen_New(PyFrameObject *frame)
16
    # Return value: New reference.
17
    # Create and return a new generator object based on the frame object. A
18
    # reference to frame is stolen by this function. The argument must not be
19
    # NULL.
20

21
    object PyGen_NewWithQualName(PyFrameObject *frame, object name, object qualname)
22
    # Return value: New reference.
23
    # Create and return a new generator object based on the frame object, with
24
    # __name__ and __qualname__ set to name and qualname. A reference to frame
25
    # is stolen by this function. The frame argument must not be NULL.
26

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.