cpython-3.3.0: Bindings for libpython

Safe HaskellNone

CPython.Types.Cell

Synopsis

Documentation

new :: Object obj => Maybe obj -> IO CellSource

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.