cpython-3.4.0: Bindings for libpython

Safe HaskellNone
LanguageHaskell98

CPython.Types.Cell

Synopsis

Documentation

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.