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().

See Pythonx.C.PyObject.py_false/0.

@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.

See Pythonx.C.PyObject.py_none/0.

@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.

See Pythonx.C.PyObject.py_true/0.