cython

Форк
0
/
cellobject.pxd 
35 строк · 1.4 Кб
1
from .object cimport PyObject
2

3
cdef extern from "Python.h":
4

5
    ############################################################################
6
    # Cell Objects
7
    ############################################################################
8

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

12
    object PyCell_New(PyObject* ob)
13
    # Return value: New reference.
14
    # Create and return a new cell object containing the value ob. The
15
    # parameter may be NULL.
16

17
    object PyCell_Get(object cell)
18
    # Return value: New reference.
19
    # Return the contents of the cell object cell.
20

21
    object PyCell_GET(object cell)
22
    # Return value: Borrowed reference.
23
    # Return the contents of the cell object cell, but without checking that
24
    # cell is non-NULL and is a cell object.
25

26
    int PyCell_Set(object cell, PyObject* value) except? -1
27
    # Set the contents of the cell object cell to value. This releases the
28
    # reference to any current content of the cell. value may be NULL. cell
29
    # must be non-NULL; if it is not a cell object, -1 will be returned. On
30
    # success, 0 will be returned.
31

32
    void PyCell_SET(object cell, PyObject* value)
33
    # Sets the value of the cell object cell to value. No reference counts are
34
    # adjusted, and no checks are made for safety; cell must be non-NULL and
35
    # must be a cell object.
36

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

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

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

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