picop.cycellobject#

Closure cell helpers.

picop.cycellobject.cell_check(ob)#

Return True if ob is a cell object (PyCell_Check). :type ob: object :param ob:

Return type:

bool

picop.cycellobject.cell_eq(a, b)#

Return True if cell contents compare equal (not identity; empty↔empty True). :type a: object :param a: :type b: object :param b:

Return type:

bool

picop.cycellobject.cell_get(cell)#

Return the contents of cell via PyCell_Get. :type cell: object :param cell:

Return type:

object

picop.cycellobject.cell_new(ob)#

Return a new cell containing ob (PyCell_New; ob may be None). :type ob: object :param ob:

Return type:

object

picop.cycellobject.cell_set(cell, value)#

Set the contents of cell via PyCell_Set.

Notes

Returns 0 on success; errors raise — do not use the status as a bool.

Parameters:
Return type:

int