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 string

a python expression

file string
line size_t

Return Value

Type: T

the result of expression

Meta