cpython-3.5.0: Bindings for libpython
Safe HaskellNone
LanguageHaskell2010

CPython.Protocols.Mapping

Documentation

class Object a => Mapping a where Source #

Methods

toMapping :: a -> SomeMapping Source #

Instances

Instances details
Mapping SomeMapping Source # 
Instance details

Defined in CPython.Internal

Mapping Dictionary Source # 
Instance details

Defined in CPython.Protocols.Mapping

getItem :: (Mapping self, Object key) => self -> key -> IO SomeObject Source #

setItem :: (Mapping self, Object key, Object value) => self -> key -> value -> IO () Source #

deleteItem :: (Mapping self, Object key) => self -> key -> IO () Source #

size :: Mapping self => self -> IO Integer Source #

hasKey :: (Mapping self, Object key) => self -> key -> IO Bool Source #

keys :: Mapping self => self -> IO List Source #

values :: Mapping self => self -> IO List Source #

items :: Mapping self => self -> IO List Source #

Orphan instances