cpython-3.4.0: Bindings for libpython
CPython.Types.Cell
Synopsis
data Cell Source #
Instances
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.