python.type

A D API for dealing with Python's PyTypeObject

Members

Functions

pythonClass
PyObject* pythonClass(T dobj)

Creates an instance of a Python class that is equivalent to the D type T. Return PyObject*.

Structs

PythonClass
struct PythonClass(T)

A Python class that mirrors the D type T. For instance, this struct:

PythonMethod
struct PythonMethod(T, alias F)

The C API implementation of a Python method F of aggregate type T

PythonType
struct PythonType(T)

A wrapper for PyTypeObject.

Meta