OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
Python.h
Go to the documentation of this file.
1 // Entry point of the Python C API.
2 // C extensions should only #include <Python.h>, and not include directly
3 // the other Python header files included by <Python.h>.
4 
5 #ifndef Py_PYTHON_H
6 #define Py_PYTHON_H
7 
8 // Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" {
9 
10 // Include Python header files
11 #include "patchlevel.h"
12 #include "pyconfig.h"
13 #include "pymacconfig.h"
14 
15 #if defined(__sgi) && !defined(_SGI_MP_SOURCE)
16 # define _SGI_MP_SOURCE
17 #endif
18 
19 // stdlib.h, stdio.h, errno.h and string.h headers are not used by Python
20 // headers, but kept for backward compatibility. They are excluded from the
21 // limited C API of Python 3.11.
22 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
23 # include <stdlib.h>
24 # include <stdio.h> // FILE*
25 # include <errno.h> // errno
26 # include <string.h> // memcpy()
27 #endif
28 #ifndef MS_WINDOWS
29 # include <unistd.h>
30 #endif
31 #ifdef HAVE_STDDEF_H
32 # include <stddef.h> // size_t
33 #endif
34 
35 #include <assert.h> // assert()
36 #include <wchar.h> // wchar_t
37 
38 #include "pyport.h"
39 #include "pymacro.h"
40 #include "pymath.h"
41 #include "pymem.h"
42 #include "object.h"
43 #include "objimpl.h"
44 #include "typeslots.h"
45 #include "pyhash.h"
46 #include "cpython/pydebug.h"
47 #include "bytearrayobject.h"
48 #include "bytesobject.h"
49 #include "unicodeobject.h"
50 #include "longobject.h"
51 #include "cpython/longintrepr.h"
52 #include "boolobject.h"
53 #include "buffer.h"
54 #include "floatobject.h"
55 #include "complexobject.h"
56 #include "rangeobject.h"
57 #include "memoryobject.h"
58 #include "tupleobject.h"
59 #include "listobject.h"
60 #include "dictobject.h"
61 #include "cpython/odictobject.h"
62 #include "enumobject.h"
63 #include "setobject.h"
64 #include "methodobject.h"
65 #include "moduleobject.h"
66 #include "cpython/funcobject.h"
67 #include "cpython/classobject.h"
68 #include "fileobject.h"
69 #include "pycapsule.h"
70 #include "code.h"
71 #include "pyframe.h"
72 #include "traceback.h"
73 #include "sliceobject.h"
74 #include "cpython/cellobject.h"
75 #include "iterobject.h"
76 #include "cpython/initconfig.h"
77 #include "pystate.h"
78 #include "cpython/genobject.h"
79 #include "descrobject.h"
80 #include "genericaliasobject.h"
81 #include "warnings.h"
82 #include "weakrefobject.h"
83 #include "structseq.h"
84 #include "cpython/picklebufobject.h"
85 #include "cpython/pytime.h"
86 #include "codecs.h"
87 #include "pyerrors.h"
88 #include "pythread.h"
89 #include "cpython/context.h"
90 #include "modsupport.h"
91 #include "compile.h"
92 #include "pythonrun.h"
93 #include "pylifecycle.h"
94 #include "ceval.h"
95 #include "sysmodule.h"
96 #include "osmodule.h"
97 #include "intrcheck.h"
98 #include "import.h"
99 #include "abstract.h"
100 #include "bltinmodule.h"
101 #include "cpython/pyctype.h"
102 #include "pystrtod.h"
103 #include "pystrcmp.h"
104 #include "fileutils.h"
105 #include "cpython/pyfpe.h"
106 #include "tracemalloc.h"
107 
108 #endif /* !Py_PYTHON_H */