View Source Pythonx.C (Pythonx v0.2.5)
Python C API.
Summary
Functions
The start symbol from the Python grammar for isolated expressions; for use with Py_CompileString().
The start symbol from the Python grammar for sequences of statements as read from a file or other source; for use with Py_CompileString().
Flag to be used with multiple functions that print the object (like PyObject.print/1
and PyFile.write_object
).
The start symbol from the Python grammar for a single statement; for use with Py_CompileString().
Functions
@spec py_eval_input() :: integer()
The start symbol from the Python grammar for isolated expressions; for use with Py_CompileString().
@spec py_file_input() :: integer()
The start symbol from the Python grammar for sequences of statements as read from a file or other source; for use with Py_CompileString().
This is the symbol to use when compiling arbitrarily long Python source code.
@spec py_print_raw() :: integer()
Flag to be used with multiple functions that print the object (like PyObject.print/1
and PyFile.write_object
).
If passed, these function would use the str()
of the object instead of the repr()
.
@spec py_single_input() :: integer()
The start symbol from the Python grammar for a single statement; for use with Py_CompileString().
This is the symbol used for the interactive interpreter loop.