cpython-3.9.0: Bindings for libpython
Safe HaskellSafe-Inferred
LanguageHaskell2010

CPython.Types.Cell

Synopsis

Documentation

data Cell Source #

Instances

Instances details
Concrete Cell Source # 
Instance details

Defined in CPython.Types.Cell

Methods

concreteType :: Cell -> Type

Object Cell Source # 
Instance details

Defined in CPython.Types.Cell

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.