cpython-3.4.0: Bindings for libpython

Safe HaskellNone
LanguageHaskell98

CPython.Types.Tuple

Contents

Synopsis

Documentation

iterableToTuple :: Object iter => iter -> IO Tuple Source #

Convert any object implementing the iterator protocol to a Tuple.

getItem :: Tuple -> Integer -> IO SomeObject Source #

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 Tuple Source #

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 #

Orphan instances