View Source Pythonx.C.PyRun (Pythonx v0.2.5)
The functions in this chapter will let you execute Python source code given in a file or a buffer, but they will not let you interact in a more detailed way with the interpreter.
Several of these functions accept a start symbol from the grammar as a parameter.
The available start symbols are py_eval_input
, py_file_input
, and py_single_input
. These are described following the functions which accept them as parameters.
Summary
Functions
This is a simplified interface to PyRun.simple_string_flags/2
below, leaving the flags argument set to nil
.
This is a simplified interface to PyRun.string_flags/5
below, leaving flags set to nil
.
Functions
This is a simplified interface to PyRun.simple_string_flags/2
below, leaving the flags argument set to nil
.
@spec string(String.t(), integer(), Pythonx.C.PyObject.t(), Pythonx.C.PyObject.t()) :: Pythonx.C.PyObject.t() | Pythonx.C.PyErr.t()
This is a simplified interface to PyRun.string_flags/5
below, leaving flags set to nil
.
Return value: New reference.