cpython-3.3.0: Bindings for libpython

Safe HaskellNone




iterableToTuple :: Object iter => iter -> IO TupleSource

Convert any object implementing the iterator protocol to a Tuple.

getItem :: Tuple -> Integer -> IO SomeObjectSource

Return the object at a given index from a tuple, or throws IndexError if the index is out of bounds.

getSlice :: Tuple -> Integer -> Integer -> IO TupleSource

Take a slice of a tuple from low to high, and return it as a new tuple.

setItem :: Object o => Tuple -> Integer -> o -> IO ()Source