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 = FieldNameTuple!T
Undocumented in source.
fieldTypes
alias fieldTypes = Fields!T
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

Field members

Static functions

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

Static variables

getsets
PyGetSetDef[fieldNames.length + 1] getsets;
Undocumented in source.

Meta