Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

sysmodule.h 1.5 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
  1. /* System module interface */
  2. #ifndef Py_SYSMODULE_H
  3. #define Py_SYSMODULE_H
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. PyAPI_FUNC(PyObject *) PySys_GetObject(const char *);
  8. PyAPI_FUNC(int) PySys_SetObject(const char *, PyObject *);
  9. #ifndef Py_LIMITED_API
  10. PyAPI_FUNC(PyObject *) _PySys_GetObjectId(_Py_Identifier *key);
  11. PyAPI_FUNC(int) _PySys_SetObjectId(_Py_Identifier *key, PyObject *);
  12. #endif
  13. PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
  14. PyAPI_FUNC(void) PySys_SetArgvEx(int, wchar_t **, int);
  15. PyAPI_FUNC(void) PySys_SetPath(const wchar_t *);
  16. PyAPI_FUNC(void) PySys_WriteStdout(const char *format, ...)
  17. Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
  18. PyAPI_FUNC(void) PySys_WriteStderr(const char *format, ...)
  19. Py_GCC_ATTRIBUTE((format(printf, 1, 2)));
  20. PyAPI_FUNC(void) PySys_FormatStdout(const char *format, ...);
  21. PyAPI_FUNC(void) PySys_FormatStderr(const char *format, ...);
  22. PyAPI_FUNC(void) PySys_ResetWarnOptions(void);
  23. PyAPI_FUNC(void) PySys_AddWarnOption(const wchar_t *);
  24. PyAPI_FUNC(void) PySys_AddWarnOptionUnicode(PyObject *);
  25. PyAPI_FUNC(int) PySys_HasWarnOptions(void);
  26. PyAPI_FUNC(void) PySys_AddXOption(const wchar_t *);
  27. PyAPI_FUNC(PyObject *) PySys_GetXOptions(void);
  28. #ifndef Py_LIMITED_API
  29. PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *);
  30. #endif
  31. #ifdef Py_BUILD_CORE
  32. PyAPI_FUNC(int) _PySys_AddXOptionWithError(const wchar_t *s);
  33. PyAPI_FUNC(int) _PySys_AddWarnOptionWithError(PyObject *option);
  34. #endif
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38. #endif /* !Py_SYSMODULE_H */
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...