PythonClass

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

struct Foo {
    int i;
    string s;
}

Will generate a Python class called Foo with two members, and trying to assign anything but an integer to Foo.i or a string to Foo.s in Python will raise TypeError.

Members

Aliases

fieldNames
alias fieldNames = PythonType!(Unqual!T).fieldNames
Undocumented in source.
fieldTypes
alias fieldTypes = PythonType!(Unqual!T).fieldTypes
Undocumented in source.

Functions

getField
PyObject* getField()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin PyObjectHead
Undocumented in source.

Static functions

_set_impl
int _set_impl(PyObject* self_, PyObject* value, void* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
propertyGet
PyObject* propertyGet(PyObject* self_, void* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
propertySet
int propertySet(PyObject* self_, PyObject* value, void* closure)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta