Cell 对象

    用于Cell对象的C结构体。

    PyTypeObject PyCell_Type

    与 Cell 对象对应的类型对​​象。

    int PyCell_Check(ob)

    (PyObject **ob)

    Return value: New reference.

    Create and return a new cell object containing the value ob. The parameter may be NULL.

    PyCell_Get(PyObject **cell)

    Return value: New reference.

    PyCell_GET(PyObject **cell)

    Return value: Borrowed reference.

    Return the contents of the cell cell, but without checking that cell is non-NULL and a cell object.

    int ( cell*, PyObject value*)

    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.

    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.