cpython-3.3.0: Bindings for libpython

Safe HaskellNone

CPython.Types

Contents

Synopsis

Types and classes

class Object a => AnySet a Source

data Proxy Source

Instances

Python Type values

Building and parsing values

iterableToList :: Object iter => iter -> IO ListSource

Convert any object implementing the iterator protocol to a List.

iterableToSet :: Object obj => obj -> IO SetSource

Return a new Set from the contents of an iterable Object. The object may be Nothing to create an empty set. Throws a TypeError if the object is not iterable.

iterableToFrozenSet :: Object obj => obj -> IO FrozenSetSource

Return a new FrozenSet from the contents of an iterable Object. The object may be Nothing to create an empty frozen set. Throws a TypeError if the object is not iterable.

fromSet :: AnySet set => set -> IO [SomeObject]Source

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

Convert any object implementing the iterator protocol to a Tuple.