Staging
v0.5.1
https://github.com/python/cpython
Revision ecab623e1315cd0cfbe01e046e618001fe315490 authored by Georg Brandl on 06 September 2006, 06:47:02 UTC, committed by Georg Brandl on 06 September 2006, 06:47:02 UTC
Also make sure that every exception class has __module__ set to
'exceptions'.
 (backport)
1 parent 37a9e57
Raw File
Tip revision: ecab623e1315cd0cfbe01e046e618001fe315490 authored by Georg Brandl on 06 September 2006, 06:47:02 UTC
Bug #1542051: Exceptions now correctly call PyObject_GC_UnTrack.
Tip revision: ecab623
sysmodule.h

/* System module interface */

#ifndef Py_SYSMODULE_H
#define Py_SYSMODULE_H
#ifdef __cplusplus
extern "C" {
#endif

PyAPI_FUNC(PyObject *) PySys_GetObject(char *);
PyAPI_FUNC(int) PySys_SetObject(char *, PyObject *);
PyAPI_FUNC(FILE *) PySys_GetFile(char *, FILE *);
PyAPI_FUNC(void) PySys_SetArgv(int, char **);
PyAPI_FUNC(void) PySys_SetPath(char *);

PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
			Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
			Py_GCC_ATTRIBUTE((format(printf, 1, 2)));

PyAPI_DATA(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
PyAPI_DATA(int) _PySys_CheckInterval;

PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
PyAPI_FUNC(void) PySys_AddWarnOption(char *);

#ifdef __cplusplus
}
#endif
#endif /* !Py_SYSMODULE_H */
back to top