MissingPy-0.10.6: Haskell interface to Python

MaintainerJohn Goerzen,
Safe HaskellSafe-Infered

Python.Types

Description

Maintainer : jgoerzen@complete.org Stability : provisional Portability: portable

Interfaces to low-level Python types. You should probably not use this module directly. You probably want Python.Objects instead.

You'll only need this module directly if you are importing new functions from the Python C API.

Written by John Goerzen, jgoerzen@complete.org

Synopsis

Documentation

newtype PyObject Source

The type of Python objects.

Constructors

PyObject (ForeignPtr CPyObject) 

Instances

Eq PyObject 
Show PyObject 
FromPyObject a => FromPyObject [(a, PyObject)] 
FromPyObject [(PyObject, PyObject)]

ALs from Dicts

FromPyObject [PyObject]

Tuples and Lists to [PyObject] lists

ToPyObject a => ToPyObject [(a, PyObject)]

This is a common variant used for arg lists

ToPyObject [(PyObject, PyObject)]

Dicts from ALs

ToPyObject [PyObject]

Lists from a PyObject

data PyException Source

The type of Python exceptions.

Constructors

PyException 

Fields

excType :: PyObject

Exception type

excValue :: PyObject

Exception value

excTraceBack :: PyObject

Traceback

excFormatted :: String

Formatted for display

data StartFrom Source

How to interpret a snippet of Python code.