PythonType

A wrapper for PyTypeObject.

This struct does all of the necessary boilerplate to intialise a PyTypeObject for a Python extension type that mimics the D type T.

Members

Aliases

fieldNames
alias fieldNames = FieldNameTuple!T
Undocumented in source.
fieldNames
alias fieldNames = AliasSeq!(FieldNameTuple!T, staticMap!(FieldNameTuple, BaseClassesTuple!T))
Undocumented in source.
fieldNames
alias fieldNames = AliasSeq!()
Undocumented in source.
fieldTypes
alias fieldTypes = Fields!T
Undocumented in source.
fieldTypes
alias fieldTypes = staticMap!(fieldType, fieldNames)
Undocumented in source.
fieldTypes
alias fieldTypes = AliasSeq!()
Undocumented in source.

Manifest constants

hasLength
enum hasLength;
Undocumented in source.

Static functions

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

Static variables

_pyType
PyTypeObject _pyType;
Undocumented in source.
failedToReady
bool failedToReady;
Undocumented in source.

Meta