pyd.embedded

Contains utilities for embedding python in D.

Importing this module will call Py_Initialize.

Members

Classes

InterpContext
class InterpContext

Encapsulate a context within the Python interpreter.

Functions

py_def
ReturnType!func_t py_def(ParameterTypeTuple!func_t args, string file, size_t line)

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

py_eval
T py_eval(string python, string modl, string file, size_t line)

Evaluate a python expression once and return the result.

py_import
PydObject py_import(string name)

Fetch a python module object.

py_stmts
void py_stmts(string python, string modl, string file, size_t line)

Evaluate one or more python statements once.

Meta