py_eval

Evaluate a python expression once and return the result.

T
py_eval
(
T = PydObject
)
(
string python
,
string modl = ""
,
string file = __FILE__
,
size_t line = __LINE__
)

Parameters

python
Type: string

a python expression

modl
Type: string

context in which to run expression. either a python module name, or "".

Meta