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

pythonCallable
PyObject* pythonCallable(T callable)
Undocumented in source. Be warned that the author may not have intended to support it.
pythonClass
PyObject* pythonClass(T dobj)

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

userAggregateInit
T userAggregateInit()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

PythonClass
struct PythonClass(T)

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

PythonFunction
struct PythonFunction(alias F)

The C API implementation that calls a D function F.

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