Go to the source code of this file.
|
template<eval_mode mode = eval_expr> |
object | eval (str expr, object global=globals(), object local=object()) |
|
template<eval_mode mode = eval_expr, size_t N> |
object | eval (const char(&s)[N], object global=globals(), object local=object()) |
|
template<eval_mode mode = eval_statements> |
object | eval_file (str fname, object global=globals(), object local=object()) |
|
void | exec (str expr, object global=globals(), object local=object()) |
|
template<size_t N> |
void | exec (const char(&s)[N], object global=globals(), object local=object()) |
|
Enumerator |
---|
eval_expr |
Evaluate a string containing an isolated expression.
|
eval_single_statement |
Evaluate a string containing a single statement. Returns none .
|
eval_statements |
Evaluate a string containing a sequence of statement. Returns none .
|
Definition at line 18 of file eval.h.
template<eval_mode mode = eval_expr>
template<eval_mode mode = eval_expr, size_t N>
template<eval_mode mode = eval_statements>