InterpContext.py_eval

Evaluate a python expression once within this context and return the result.

class InterpContext
T
py_eval
(
T = PydObject
)
(
string python
,
string file = __FILE__
,
size_t line = __LINE__
)

Parameters

python
Type: string

a python expression

Return Value

Type: T

the result of expression

Meta