diff options
author | Guido van Rossum <guido@python.org> | 1998-02-06 22:28:05 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-02-06 22:28:05 (GMT) |
commit | 66d4b9079117ba1496ca08e8c1be22626b3bc89a (patch) | |
tree | 5b32dd8e42d9521233a339c4c6dc7db3bc149a4b /Include/pythonrun.h | |
parent | 95c745b5fc0d59bf055fc0a09214f6919134b941 (diff) | |
download | cpython-66d4b9079117ba1496ca08e8c1be22626b3bc89a.zip cpython-66d4b9079117ba1496ca08e8c1be22626b3bc89a.tar.gz cpython-66d4b9079117ba1496ca08e8c1be22626b3bc89a.tar.bz2 |
- Add Py_GetPythonHome() and Py_SetPythonHome(), intended to allow
embedders to force a different PYTHONHOME.
- Add new interface PyErr_PrintEx(flag); same as PyErr_Print() but
flag determines whether sys.last_* are set or not. PyErr_Print()
now simply calls PyErr_PrintEx(1).
Diffstat (limited to 'Include/pythonrun.h')
-rw-r--r-- | Include/pythonrun.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/pythonrun.h b/Include/pythonrun.h index a41d46a..192c259 100644 --- a/Include/pythonrun.h +++ b/Include/pythonrun.h @@ -40,6 +40,9 @@ PERFORMANCE OF THIS SOFTWARE. void Py_SetProgramName Py_PROTO((char *)); char *Py_GetProgramName Py_PROTO((void)); +void Py_SetPythonHome Py_PROTO((char *)); +char *Py_GetPythonHome Py_PROTO((void)); + void Py_Initialize Py_PROTO((void)); void Py_Finalize Py_PROTO((void)); int Py_IsInitialized Py_PROTO((void)); @@ -62,6 +65,7 @@ PyObject *PyRun_File Py_PROTO((FILE *, char *, int, PyObject *, PyObject *)); PyObject *Py_CompileString Py_PROTO((char *, char *, int)); void PyErr_Print Py_PROTO((void)); +void PyErr_PrintEx Py_PROTO((int)); int Py_AtExit Py_PROTO((void (*func) Py_PROTO((void)))); |