1#ifndef Py_LIMITED_API
2#ifndef Py_PYDEBUG_H
3#define Py_PYDEBUG_H
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8PyAPI_DATA(int) Py_DebugFlag;
9PyAPI_DATA(int) Py_VerboseFlag;
10PyAPI_DATA(int) Py_QuietFlag;
11PyAPI_DATA(int) Py_InteractiveFlag;
12PyAPI_DATA(int) Py_InspectFlag;
13PyAPI_DATA(int) Py_OptimizeFlag;
14PyAPI_DATA(int) Py_NoSiteFlag;
15PyAPI_DATA(int) Py_BytesWarningFlag;
16PyAPI_DATA(int) Py_FrozenFlag;
17PyAPI_DATA(int) Py_IgnoreEnvironmentFlag;
18PyAPI_DATA(int) Py_DontWriteBytecodeFlag;
19PyAPI_DATA(int) Py_NoUserSiteDirectory;
20PyAPI_DATA(int) Py_UnbufferedStdioFlag;
21PyAPI_DATA(int) Py_HashRandomizationFlag;
22PyAPI_DATA(int) Py_IsolatedFlag;
23
24#ifdef MS_WINDOWS
25PyAPI_DATA(int) Py_LegacyWindowsFSEncodingFlag;
26PyAPI_DATA(int) Py_LegacyWindowsStdioFlag;
27#endif
28
29/* this is a wrapper around getenv() that pays attention to
30 Py_IgnoreEnvironmentFlag. It should be used for getting variables like
31 PYTHONPATH and PYTHONHOME from the environment */
32#define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s))
33
34#ifdef __cplusplus
35}
36#endif
37#endif /* !Py_PYDEBUG_H */
38#endif /* Py_LIMITED_API */
39

source code of include/python3.10/cpython/pydebug.h