1
2/* System module interface */
3
4#ifndef Py_SYSMODULE_H
5#define Py_SYSMODULE_H
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10PyAPI_FUNC(PyObject *) PySys_GetObject(const char *);
11PyAPI_FUNC(int) PySys_SetObject(const char *, PyObject *);
12
13PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
14PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int);
15PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
16
17PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
18 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
19PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
20 Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
21PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...);
22PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);
23
24PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
25PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *);
26PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *);
27PyAPI_FUNC(int) PySys_HasWarnOptions(void);
28
29PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *);
30PyAPI_FUNC(PyObject *) PySys_GetXOptions(void);
31
32#ifndef Py_LIMITED_API
33# define Py_CPYTHON_SYSMODULE_H
34# include "cpython/sysmodule.h"
35# undef Py_CPYTHON_SYSMODULE_H
36#endif
37
38#ifdef __cplusplus
39}
40#endif
41#endif /* !Py_SYSMODULE_H */
42

source code of include/python3.10/sysmodule.h