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)
    extern (C)
    PyRun_String
    (
    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.

l PyObject*

local variables. should be a dict.

Return Value

Type: PyObject*

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

Meta