py_def

Wraps a python function (specified as a string) as a D function roughly of signature func_t

ReturnType!func_t
py_def
(
string python
string modl
func_t
)
(
ParameterTypeTuple!func_t args
,
string file = __FILE__
,
size_t line = __LINE__
)

Parameters

python

a python function

modl

context in which to run expression. must be a python module name.

func_t

type of d function

Meta