A Python class that mirrors the D type T.
For instance, this struct:
structFoo {
inti;
strings;
}
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.
A Python class that mirrors the D type T. For instance, this struct:
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.