picop.cycellobject#
Closure cell helpers.
- picop.cycellobject.cell_check(ob)#
Return True if
obis a cell object (PyCell_Check).
- picop.cycellobject.cell_empty()#
Return a genuinely empty cell; unlike
cell_new(None), contents access raises.- Return type:
- picop.cycellobject.cell_eq(a, b)#
Return True if cell contents compare equal (not identity; empty↔empty True).
- picop.cycellobject.cell_get(cell)#
Return the contents of
cell(PyCell_GET); an empty cell raisesValueError.
- picop.cycellobject.cell_new(ob)#
Return a new cell containing
ob(PyCell_New;obmay beNone).
- picop.cycellobject.cell_set(cell, value)#
Set the contents of
cellviaPyCell_Set.Notes
Returns
0on success; errors raise — do not use the status as a bool.