pyMethodDef

Helper function to create PyMethodDef structs. The strings are compile-time parameters to avoid passing GC-allocated memory to Python (by calling std.string.toStringz or manually appending the null terminator).

pure
pyMethodDef
(
string name
int flags = MethodArgs.Var | MethodArgs.Keywords
string doc = ""
F
)

Meta