python.type

A D API for dealing with Python's PyTypeObject

Members

Enums

isDateOrDateTime
eponymoustemplate isDateOrDateTime(T)
Undocumented in source.
isNonRangeUDT
eponymoustemplate isNonRangeUDT(T)
Undocumented in source.
isPhobos
eponymoustemplate isPhobos(T)
Undocumented in source.
isTuple
eponymoustemplate isTuple(T)
Undocumented in source.
isUserAggregate
eponymoustemplate isUserAggregate(T)
Undocumented in source.

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