File indexing completed on 2025-11-19 09:50:54
0001
0002
0003
0004
0005 #ifndef Py_PYTHON_H
0006 #define Py_PYTHON_H
0007
0008
0009
0010
0011
0012
0013 #include "patchlevel.h"
0014 #include "pyconfig.h"
0015 #include "pymacconfig.h"
0016
0017
0018
0019 #include <assert.h> // assert()
0020 #include <inttypes.h> // uintptr_t
0021 #include <limits.h> // INT_MAX
0022 #include <math.h> // HUGE_VAL
0023 #include <stdarg.h> // va_list
0024 #include <wchar.h> // wchar_t
0025 #ifdef HAVE_SYS_TYPES_H
0026 # include <sys/types.h> // ssize_t
0027 #endif
0028
0029
0030
0031
0032
0033
0034
0035 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
0036 # include <errno.h> // errno
0037 # include <stdio.h> // FILE*
0038 # include <stdlib.h> // getenv()
0039 # include <string.h> // memcpy()
0040 #endif
0041 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030d0000
0042 # include <ctype.h> // tolower()
0043 # ifndef MS_WINDOWS
0044 # include <unistd.h> // close()
0045 # endif
0046 #endif
0047
0048
0049
0050 #if defined(Py_LIMITED_API) && defined(Py_GIL_DISABLED)
0051 # error "The limited API is not currently supported in the free-threaded build"
0052 #endif
0053
0054 #if defined(Py_GIL_DISABLED) && defined(_MSC_VER)
0055 # include <intrin.h> // __readgsqword()
0056 #endif
0057
0058 #if defined(Py_GIL_DISABLED) && defined(__MINGW32__)
0059 # include <intrin.h> // __readgsqword()
0060 #endif
0061
0062
0063 #include "pyport.h"
0064 #include "pymacro.h"
0065 #include "pymath.h"
0066 #include "pymem.h"
0067 #include "pytypedefs.h"
0068 #include "pybuffer.h"
0069 #include "pystats.h"
0070 #include "pyatomic.h"
0071 #include "lock.h"
0072 #include "object.h"
0073 #include "objimpl.h"
0074 #include "typeslots.h"
0075 #include "pyhash.h"
0076 #include "cpython/pydebug.h"
0077 #include "bytearrayobject.h"
0078 #include "bytesobject.h"
0079 #include "unicodeobject.h"
0080 #include "pyerrors.h"
0081 #include "longobject.h"
0082 #include "cpython/longintrepr.h"
0083 #include "boolobject.h"
0084 #include "floatobject.h"
0085 #include "complexobject.h"
0086 #include "rangeobject.h"
0087 #include "memoryobject.h"
0088 #include "tupleobject.h"
0089 #include "listobject.h"
0090 #include "dictobject.h"
0091 #include "cpython/odictobject.h"
0092 #include "enumobject.h"
0093 #include "setobject.h"
0094 #include "methodobject.h"
0095 #include "moduleobject.h"
0096 #include "monitoring.h"
0097 #include "cpython/funcobject.h"
0098 #include "cpython/classobject.h"
0099 #include "fileobject.h"
0100 #include "pycapsule.h"
0101 #include "cpython/code.h"
0102 #include "pyframe.h"
0103 #include "traceback.h"
0104 #include "sliceobject.h"
0105 #include "cpython/cellobject.h"
0106 #include "iterobject.h"
0107 #include "cpython/initconfig.h"
0108 #include "pystate.h"
0109 #include "cpython/genobject.h"
0110 #include "descrobject.h"
0111 #include "genericaliasobject.h"
0112 #include "warnings.h"
0113 #include "weakrefobject.h"
0114 #include "structseq.h"
0115 #include "cpython/picklebufobject.h"
0116 #include "cpython/pytime.h"
0117 #include "codecs.h"
0118 #include "pythread.h"
0119 #include "cpython/context.h"
0120 #include "modsupport.h"
0121 #include "compile.h"
0122 #include "pythonrun.h"
0123 #include "pylifecycle.h"
0124 #include "ceval.h"
0125 #include "sysmodule.h"
0126 #include "osmodule.h"
0127 #include "intrcheck.h"
0128 #include "import.h"
0129 #include "abstract.h"
0130 #include "bltinmodule.h"
0131 #include "critical_section.h"
0132 #include "cpython/pyctype.h"
0133 #include "pystrtod.h"
0134 #include "pystrcmp.h"
0135 #include "fileutils.h"
0136 #include "cpython/pyfpe.h"
0137 #include "cpython/tracemalloc.h"
0138
0139 #endif