cpython-3.5.1: Bindings for libpython
Safe HaskellNone
LanguageHaskell2010

CPython.Types.Tuple

Synopsis

Documentation

data Tuple Source #

Instances

Instances details
Sequence Tuple Source # 
Instance details

Defined in CPython.Protocols.Sequence

Concrete Tuple Source # 
Instance details

Defined in CPython.Types.Tuple

Methods

concreteType :: Tuple -> Type

Object Tuple Source # 
Instance details

Defined in CPython.Internal

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

Concrete Tuple Source # 
Instance details

Methods

concreteType :: Tuple -> Type