PyRun_StringFlags

extern (C)
PyRun_StringFlags
(
const(char)* str
,
int s
,,,)

Parameters

str const(char)*

python code to run

s int

start symbol. one of Py_eval_input, Py_file_input, Py_single_input.

g PyObject*

globals variables. should be a dict.

flags PyCompilerFlags*

compilation flags (modified by from __future__ import xx).

Return Value

Type: PyObject*

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

Meta