1
from .object cimport PyObject
3
cdef extern from "Python.h":
5
############################################################################
7
############################################################################
9
bint PyCell_Check(object ob)
10
# Return true if ob is a cell object; ob must not be NULL.
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.
17
object PyCell_Get(object cell)
18
# Return value: New reference.
19
# Return the contents of the cell object cell.
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.
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.
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.