PyRun_StringFlags

extern (C)
PyRun_StringFlags
()

Parameters

str
Type: const(char)*

python code to run

s
Type: int

start symbol. one of Py_eval_input, Py_file_input, Py_single_input.

g
Type: PyObject*

globals variables. should be a dict.

flags

compilation flags (modified by from __future__ import xx).

Return Value

Type: PyObject*

result of executing code, or null if an exception was raised.

Meta