- 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).
This commit is contained in:
Guido van Rossum 1998-02-06 22:28:05 +00:00
parent 95c745b5fc
commit 66d4b90791
1 changed files with 4 additions and 0 deletions

View File

@ -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))));