CPython.Types.Cell
data Cell Source #
Defined in CPython.Types.Cell
Methods
concreteType :: Cell -> Type
toObject :: Cell -> SomeObject Source #
fromForeignPtr :: ForeignPtr Cell -> Cell
cellType :: Type Source #
new :: Object obj => Maybe obj -> IO Cell Source #
Create and return a new cell containing the value obj.
get :: Cell -> IO (Maybe SomeObject) Source #
Return the contents of a cell.
set :: Object obj => Cell -> Maybe obj -> IO () Source #
Set the contents of a cell to obj. This releases the reference to any current content of the cell.