File: cellobject.pxd

package info (click to toggle)
cython 0.29.32-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,028 kB
  • sloc: python: 67,518; ansic: 14,866; cpp: 1,340; xml: 1,031; makefile: 393; lisp: 206; sh: 137; sed: 11
file content (35 lines) | stat: -rw-r--r-- 1,390 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from .object cimport PyObject

cdef extern from "Python.h":

    ############################################################################
    # Cell Objects
    ############################################################################

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

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

    object PyCell_Get(object cell)
    # Return value: New reference.
    # Return the contents of the cell object cell.

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

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

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