PyRun_String

  1. PyObject* PyRun_String(const(char)* str, int s, PyObject* g, PyObject* l)
  2. PyObject* PyRun_String(const(char)* str, int s, PyObject* g, PyObject* l)
    version(!Python_2_5_Or_Later)
    PyRun_String
    (
    const(char)* str
    ,
    int s
    ,,
    )

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.

l
Type: PyObject*

local variables. should be a dict.

Return Value

Type: PyObject*

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

Meta