/src/cpython/Include/object.h
Line | Count | Source |
1 | | #ifndef Py_OBJECT_H |
2 | | #define Py_OBJECT_H |
3 | | #ifdef __cplusplus |
4 | | extern "C" { |
5 | | #endif |
6 | | |
7 | | |
8 | | /* Object and type object interface */ |
9 | | |
10 | | /* |
11 | | Objects are structures allocated on the heap. Special rules apply to |
12 | | the use of objects to ensure they are properly garbage-collected. |
13 | | Objects are never allocated statically or on the stack; they must be |
14 | | accessed through special macros and functions only. (Type objects are |
15 | | exceptions to the first rule; the standard types are represented by |
16 | | statically initialized type objects, although work on type/class unification |
17 | | for Python 2.2 made it possible to have heap-allocated type objects too). |
18 | | |
19 | | An object has a 'reference count' that is increased or decreased when a |
20 | | pointer to the object is copied or deleted; when the reference count |
21 | | reaches zero there are no references to the object left and it can be |
22 | | removed from the heap. |
23 | | |
24 | | An object has a 'type' that determines what it represents and what kind |
25 | | of data it contains. An object's type is fixed when it is created. |
26 | | Types themselves are represented as objects; an object contains a |
27 | | pointer to the corresponding type object. The type itself has a type |
28 | | pointer pointing to the object representing the type 'type', which |
29 | | contains a pointer to itself!. |
30 | | |
31 | | Objects do not float around in memory; once allocated an object keeps |
32 | | the same size and address. Objects that must hold variable-size data |
33 | | can contain pointers to variable-size parts of the object. Not all |
34 | | objects of the same type have the same size; but the size cannot change |
35 | | after allocation. (These restrictions are made so a reference to an |
36 | | object can be simply a pointer -- moving an object would require |
37 | | updating all the pointers, and changing an object's size would require |
38 | | moving it if there was another object right next to it.) |
39 | | |
40 | | Objects are always accessed through pointers of the type 'PyObject *'. |
41 | | The type 'PyObject' is a structure that only contains the reference count |
42 | | and the type pointer. The actual memory allocated for an object |
43 | | contains other data that can only be accessed after casting the pointer |
44 | | to a pointer to a longer structure type. This longer type must start |
45 | | with the reference count and type fields; the macro PyObject_HEAD should be |
46 | | used for this (to accommodate for future changes). The implementation |
47 | | of a particular object type can cast the object pointer to the proper |
48 | | type and back. |
49 | | |
50 | | A standard interface exists for objects that contain an array of items |
51 | | whose size is determined when the object is allocated. |
52 | | */ |
53 | | |
54 | | /* Py_DEBUG implies Py_REF_DEBUG. */ |
55 | | #if defined(Py_DEBUG) && !defined(Py_REF_DEBUG) |
56 | | # define Py_REF_DEBUG |
57 | | #endif |
58 | | |
59 | | #if defined(_Py_OPAQUE_PYOBJECT) && !defined(Py_LIMITED_API) |
60 | | # error "_Py_OPAQUE_PYOBJECT only makes sense with Py_LIMITED_API" |
61 | | #endif |
62 | | |
63 | | #ifndef _Py_OPAQUE_PYOBJECT |
64 | | /* PyObject_HEAD defines the initial segment of every PyObject. */ |
65 | | #define PyObject_HEAD PyObject ob_base; |
66 | | |
67 | | // Kept for backward compatibility. It was needed by Py_TRACE_REFS build. |
68 | | #define _PyObject_EXTRA_INIT |
69 | | |
70 | | /* Make all uses of PyObject_HEAD_INIT immortal. |
71 | | * |
72 | | * Statically allocated objects might be shared between |
73 | | * interpreters, so must be marked as immortal. |
74 | | * |
75 | | * Before changing this, see the check in PyModuleDef_Init(). |
76 | | */ |
77 | | #if defined(Py_GIL_DISABLED) |
78 | | #define PyObject_HEAD_INIT(type) \ |
79 | | { \ |
80 | | 0, \ |
81 | | _Py_STATICALLY_ALLOCATED_FLAG, \ |
82 | | { 0 }, \ |
83 | | 0, \ |
84 | | _Py_IMMORTAL_REFCNT_LOCAL, \ |
85 | | 0, \ |
86 | | (type), \ |
87 | | }, |
88 | | #else |
89 | | #define PyObject_HEAD_INIT(type) \ |
90 | 243M | { \ |
91 | 243M | { _Py_STATIC_IMMORTAL_INITIAL_REFCNT }, \ |
92 | 243M | (type) \ |
93 | 243M | }, |
94 | | #endif |
95 | | |
96 | | #define PyVarObject_HEAD_INIT(type, size) \ |
97 | 243M | { \ |
98 | 243M | PyObject_HEAD_INIT(type) \ |
99 | 243M | (size) \ |
100 | 243M | }, |
101 | | |
102 | | /* PyObject_VAR_HEAD defines the initial segment of all variable-size |
103 | | * container objects. These end with a declaration of an array with 1 |
104 | | * element, but enough space is malloc'ed so that the array actually |
105 | | * has room for ob_size elements. Note that ob_size is an element count, |
106 | | * not necessarily a byte count. |
107 | | */ |
108 | | #define PyObject_VAR_HEAD PyVarObject ob_base; |
109 | | #endif // !defined(_Py_OPAQUE_PYOBJECT) |
110 | | |
111 | | #define Py_INVALID_SIZE (Py_ssize_t)-1 |
112 | | |
113 | | /* PyObjects are given a minimum alignment so that the least significant bits |
114 | | * of an object pointer become available for other purposes. |
115 | | * This must be an integer literal with the value (1 << _PyGC_PREV_SHIFT), number of bytes. |
116 | | */ |
117 | | #define _PyObject_MIN_ALIGNMENT 4 |
118 | | |
119 | | /* Nothing is actually declared to be a PyObject, but every pointer to |
120 | | * a Python object can be cast to a PyObject*. This is inheritance built |
121 | | * by hand. Similarly every pointer to a variable-size Python object can, |
122 | | * in addition, be cast to PyVarObject*. |
123 | | */ |
124 | | #ifdef _Py_OPAQUE_PYOBJECT |
125 | | /* PyObject is opaque */ |
126 | | #elif !defined(Py_GIL_DISABLED) |
127 | | struct _object { |
128 | | _Py_ANONYMOUS union { |
129 | | #if SIZEOF_VOID_P > 4 |
130 | | PY_INT64_T ob_refcnt_full; /* This field is needed for efficient initialization with Clang on ARM */ |
131 | | struct { |
132 | | # if PY_BIG_ENDIAN |
133 | | uint16_t ob_flags; |
134 | | uint16_t ob_overflow; |
135 | | uint32_t ob_refcnt; |
136 | | # else |
137 | | uint32_t ob_refcnt; |
138 | | uint16_t ob_overflow; |
139 | | uint16_t ob_flags; |
140 | | # endif |
141 | | }; |
142 | | #else |
143 | | Py_ssize_t ob_refcnt; |
144 | | #endif |
145 | | _Py_ALIGNED_DEF(_PyObject_MIN_ALIGNMENT, char) _aligner; |
146 | | }; |
147 | | |
148 | | PyTypeObject *ob_type; |
149 | | }; |
150 | | #else |
151 | | // Objects that are not owned by any thread use a thread id (tid) of zero. |
152 | | // This includes both immortal objects and objects whose reference count |
153 | | // fields have been merged. |
154 | | #define _Py_UNOWNED_TID 0 |
155 | | |
156 | | struct _object { |
157 | | // ob_tid stores the thread id (or zero). It is also used by the GC and the |
158 | | // trashcan mechanism as a linked list pointer and by the GC to store the |
159 | | // computed "gc_refs" refcount. |
160 | | _Py_ALIGNED_DEF(_PyObject_MIN_ALIGNMENT, uintptr_t) ob_tid; |
161 | | uint16_t ob_flags; |
162 | | PyMutex ob_mutex; // per-object lock |
163 | | uint8_t ob_gc_bits; // gc-related state |
164 | | uint32_t ob_ref_local; // local reference count |
165 | | Py_ssize_t ob_ref_shared; // shared (atomic) reference count |
166 | | PyTypeObject *ob_type; |
167 | | }; |
168 | | #endif // !defined(_Py_OPAQUE_PYOBJECT) |
169 | | |
170 | | /* Cast argument to PyObject* type. */ |
171 | 156G | #define _PyObject_CAST(op) _Py_CAST(PyObject*, (op)) |
172 | | |
173 | | #ifndef _Py_OPAQUE_PYOBJECT |
174 | | struct PyVarObject { |
175 | | PyObject ob_base; |
176 | | Py_ssize_t ob_size; /* Number of items in variable part */ |
177 | | }; |
178 | | #endif |
179 | | typedef struct PyVarObject PyVarObject; |
180 | | |
181 | | /* Cast argument to PyVarObject* type. */ |
182 | 7.18G | #define _PyVarObject_CAST(op) _Py_CAST(PyVarObject*, (op)) |
183 | | |
184 | | |
185 | | // Test if the 'x' object is the 'y' object, the same as "x is y" in Python. |
186 | | PyAPI_FUNC(int) Py_Is(PyObject *x, PyObject *y); |
187 | 251M | #define Py_Is(x, y) ((x) == (y)) |
188 | | |
189 | | #if defined(Py_GIL_DISABLED) && !defined(Py_LIMITED_API) |
190 | | PyAPI_FUNC(uintptr_t) _Py_GetThreadLocal_Addr(void); |
191 | | |
192 | | static inline uintptr_t |
193 | | _Py_ThreadId(void) |
194 | | { |
195 | | uintptr_t tid; |
196 | | #if defined(_MSC_VER) && defined(_M_X64) |
197 | | tid = __readgsqword(48); |
198 | | #elif defined(_MSC_VER) && defined(_M_IX86) |
199 | | tid = __readfsdword(24); |
200 | | #elif defined(_MSC_VER) && defined(_M_ARM64) |
201 | | tid = __getReg(18); |
202 | | #elif defined(__MINGW32__) && defined(_M_X64) |
203 | | tid = __readgsqword(48); |
204 | | #elif defined(__MINGW32__) && defined(_M_IX86) |
205 | | tid = __readfsdword(24); |
206 | | #elif defined(__MINGW32__) && defined(_M_ARM64) |
207 | | tid = __getReg(18); |
208 | | #elif defined(__i386__) |
209 | | __asm__("movl %%gs:0, %0" : "=r" (tid)); // 32-bit always uses GS |
210 | | #elif defined(__MACH__) && defined(__x86_64__) |
211 | | __asm__("movq %%gs:0, %0" : "=r" (tid)); // x86_64 macOSX uses GS |
212 | | #elif defined(__x86_64__) |
213 | | __asm__("movq %%fs:0, %0" : "=r" (tid)); // x86_64 Linux, BSD uses FS |
214 | | #elif defined(__arm__) && __ARM_ARCH >= 7 |
215 | | __asm__ ("mrc p15, 0, %0, c13, c0, 3\nbic %0, %0, #3" : "=r" (tid)); |
216 | | #elif defined(__aarch64__) && defined(__APPLE__) |
217 | | __asm__ ("mrs %0, tpidrro_el0" : "=r" (tid)); |
218 | | #elif defined(__aarch64__) |
219 | | __asm__ ("mrs %0, tpidr_el0" : "=r" (tid)); |
220 | | #elif defined(__powerpc64__) |
221 | | #if defined(__clang__) && _Py__has_builtin(__builtin_thread_pointer) |
222 | | tid = (uintptr_t)__builtin_thread_pointer(); |
223 | | #else |
224 | | // r13 is reserved for use as system thread ID by the Power 64-bit ABI. |
225 | | register uintptr_t tp __asm__ ("r13"); |
226 | | __asm__("" : "=r" (tp)); |
227 | | tid = tp; |
228 | | #endif |
229 | | #elif defined(__powerpc__) |
230 | | #if defined(__clang__) && _Py__has_builtin(__builtin_thread_pointer) |
231 | | tid = (uintptr_t)__builtin_thread_pointer(); |
232 | | #else |
233 | | // r2 is reserved for use as system thread ID by the Power 32-bit ABI. |
234 | | register uintptr_t tp __asm__ ("r2"); |
235 | | __asm__ ("" : "=r" (tp)); |
236 | | tid = tp; |
237 | | #endif |
238 | | #elif defined(__s390__) && defined(__GNUC__) |
239 | | // Both GCC and Clang have supported __builtin_thread_pointer |
240 | | // for s390 from long time ago. |
241 | | tid = (uintptr_t)__builtin_thread_pointer(); |
242 | | #elif defined(__riscv) |
243 | | #if defined(__clang__) && _Py__has_builtin(__builtin_thread_pointer) |
244 | | tid = (uintptr_t)__builtin_thread_pointer(); |
245 | | #else |
246 | | // tp is Thread Pointer provided by the RISC-V ABI. |
247 | | __asm__ ("mv %0, tp" : "=r" (tid)); |
248 | | #endif |
249 | | #else |
250 | | // Fallback to a portable implementation if we do not have a faster |
251 | | // platform-specific implementation. |
252 | | tid = _Py_GetThreadLocal_Addr(); |
253 | | #endif |
254 | | return tid; |
255 | | } |
256 | | |
257 | | static inline Py_ALWAYS_INLINE int |
258 | | _Py_IsOwnedByCurrentThread(PyObject *ob) |
259 | | { |
260 | | #ifdef _Py_THREAD_SANITIZER |
261 | | return _Py_atomic_load_uintptr_relaxed(&ob->ob_tid) == _Py_ThreadId(); |
262 | | #else |
263 | | return ob->ob_tid == _Py_ThreadId(); |
264 | | #endif |
265 | | } |
266 | | #endif |
267 | | |
268 | | // Py_TYPE() implementation for the stable ABI |
269 | | PyAPI_FUNC(PyTypeObject*) Py_TYPE(PyObject *ob); |
270 | | |
271 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030e0000 |
272 | | // Stable ABI implements Py_TYPE() as a function call |
273 | | // on limited C API version 3.14 and newer. |
274 | | #else |
275 | | static inline PyTypeObject* _Py_TYPE(PyObject *ob) |
276 | 38.7G | { |
277 | 38.7G | return ob->ob_type; |
278 | 38.7G | } Line | Count | Source | 276 | 27.7M | { | 277 | 27.7M | return ob->ob_type; | 278 | 27.7M | } |
Line | Count | Source | 276 | 563M | { | 277 | 563M | return ob->ob_type; | 278 | 563M | } |
Line | Count | Source | 276 | 72.6M | { | 277 | 72.6M | return ob->ob_type; | 278 | 72.6M | } |
genericaliasobject.c:_Py_TYPE Line | Count | Source | 276 | 906 | { | 277 | 906 | return ob->ob_type; | 278 | 906 | } |
Line | Count | Source | 276 | 17.3M | { | 277 | 17.3M | return ob->ob_type; | 278 | 17.3M | } |
Line | Count | Source | 276 | 694M | { | 277 | 694M | return ob->ob_type; | 278 | 694M | } |
Line | Count | Source | 276 | 1.87G | { | 277 | 1.87G | return ob->ob_type; | 278 | 1.87G | } |
Line | Count | Source | 276 | 3.98G | { | 277 | 3.98G | return ob->ob_type; | 278 | 3.98G | } |
Line | Count | Source | 276 | 2.36k | { | 277 | 2.36k | return ob->ob_type; | 278 | 2.36k | } |
Line | Count | Source | 276 | 20.4M | { | 277 | 20.4M | return ob->ob_type; | 278 | 20.4M | } |
Line | Count | Source | 276 | 7.78G | { | 277 | 7.78G | return ob->ob_type; | 278 | 7.78G | } |
Unexecuted instantiation: obmalloc.c:_Py_TYPE Unexecuted instantiation: picklebufobject.c:_Py_TYPE Line | Count | Source | 276 | 1.56k | { | 277 | 1.56k | return ob->ob_type; | 278 | 1.56k | } |
Line | Count | Source | 276 | 123M | { | 277 | 123M | return ob->ob_type; | 278 | 123M | } |
Line | Count | Source | 276 | 1.33k | { | 277 | 1.33k | return ob->ob_type; | 278 | 1.33k | } |
Line | Count | Source | 276 | 10.1k | { | 277 | 10.1k | return ob->ob_type; | 278 | 10.1k | } |
templateobject.c:_Py_TYPE Line | Count | Source | 276 | 4 | { | 277 | 4 | return ob->ob_type; | 278 | 4 | } |
Line | Count | Source | 276 | 908M | { | 277 | 908M | return ob->ob_type; | 278 | 908M | } |
Line | Count | Source | 276 | 1.08G | { | 277 | 1.08G | return ob->ob_type; | 278 | 1.08G | } |
Unexecuted instantiation: typevarobject.c:_Py_TYPE unicode_format.c:_Py_TYPE Line | Count | Source | 276 | 190M | { | 277 | 190M | return ob->ob_type; | 278 | 190M | } |
unicode_formatter.c:_Py_TYPE Line | Count | Source | 276 | 16.5M | { | 277 | 16.5M | return ob->ob_type; | 278 | 16.5M | } |
unicode_writer.c:_Py_TYPE Line | Count | Source | 276 | 13.0M | { | 277 | 13.0M | return ob->ob_type; | 278 | 13.0M | } |
Unexecuted instantiation: unicodectype.c:_Py_TYPE Line | Count | Source | 276 | 2.46G | { | 277 | 2.46G | return ob->ob_type; | 278 | 2.46G | } |
Line | Count | Source | 276 | 962 | { | 277 | 962 | return ob->ob_type; | 278 | 962 | } |
Line | Count | Source | 276 | 116M | { | 277 | 116M | return ob->ob_type; | 278 | 116M | } |
Line | Count | Source | 276 | 71.6k | { | 277 | 71.6k | return ob->ob_type; | 278 | 71.6k | } |
Line | Count | Source | 276 | 180M | { | 277 | 180M | return ob->ob_type; | 278 | 180M | } |
Line | Count | Source | 276 | 14.4G | { | 277 | 14.4G | return ob->ob_type; | 278 | 14.4G | } |
Line | Count | Source | 276 | 2.86M | { | 277 | 2.86M | return ob->ob_type; | 278 | 2.86M | } |
Line | Count | Source | 276 | 1.52k | { | 277 | 1.52k | return ob->ob_type; | 278 | 1.52k | } |
Line | Count | Source | 276 | 172k | { | 277 | 172k | return ob->ob_type; | 278 | 172k | } |
Line | Count | Source | 276 | 14.3k | { | 277 | 14.3k | return ob->ob_type; | 278 | 14.3k | } |
Line | Count | Source | 276 | 353M | { | 277 | 353M | return ob->ob_type; | 278 | 353M | } |
Line | Count | Source | 276 | 69.9k | { | 277 | 69.9k | return ob->ob_type; | 278 | 69.9k | } |
Unexecuted instantiation: frame.c:_Py_TYPE Unexecuted instantiation: future.c:_Py_TYPE Line | Count | Source | 276 | 760M | { | 277 | 760M | return ob->ob_type; | 278 | 760M | } |
Unexecuted instantiation: gc_gil.c:_Py_TYPE Line | Count | Source | 276 | 14.9M | { | 277 | 14.9M | return ob->ob_type; | 278 | 14.9M | } |
Unexecuted instantiation: ceval_gil.c:_Py_TYPE Unexecuted instantiation: hamt.c:_Py_TYPE Unexecuted instantiation: hashtable.c:_Py_TYPE Line | Count | Source | 276 | 38.9k | { | 277 | 38.9k | return ob->ob_type; | 278 | 38.9k | } |
Line | Count | Source | 276 | 936 | { | 277 | 936 | return ob->ob_type; | 278 | 936 | } |
Line | Count | Source | 276 | 448 | { | 277 | 448 | return ob->ob_type; | 278 | 448 | } |
Unexecuted instantiation: instrumentation.c:_Py_TYPE Unexecuted instantiation: instruction_sequence.c:_Py_TYPE Line | Count | Source | 276 | 28.9k | { | 277 | 28.9k | return ob->ob_type; | 278 | 28.9k | } |
Unexecuted instantiation: legacy_tracing.c:_Py_TYPE Unexecuted instantiation: lock.c:_Py_TYPE Line | Count | Source | 276 | 515k | { | 277 | 515k | return ob->ob_type; | 278 | 515k | } |
Line | Count | Source | 276 | 205k | { | 277 | 205k | return ob->ob_type; | 278 | 205k | } |
Unexecuted instantiation: mysnprintf.c:_Py_TYPE Unexecuted instantiation: parking_lot.c:_Py_TYPE Unexecuted instantiation: preconfig.c:_Py_TYPE Unexecuted instantiation: pyarena.c:_Py_TYPE Unexecuted instantiation: pyctype.c:_Py_TYPE Unexecuted instantiation: pyhash.c:_Py_TYPE Line | Count | Source | 276 | 16 | { | 277 | 16 | return ob->ob_type; | 278 | 16 | } |
Unexecuted instantiation: pymath.c:_Py_TYPE Unexecuted instantiation: pystate.c:_Py_TYPE Line | Count | Source | 276 | 42.4k | { | 277 | 42.4k | return ob->ob_type; | 278 | 42.4k | } |
Unexecuted instantiation: pytime.c:_Py_TYPE Unexecuted instantiation: qsbr.c:_Py_TYPE Unexecuted instantiation: bootstrap_hash.c:_Py_TYPE Line | Count | Source | 276 | 27.9M | { | 277 | 27.9M | return ob->ob_type; | 278 | 27.9M | } |
Line | Count | Source | 276 | 125k | { | 277 | 125k | return ob->ob_type; | 278 | 125k | } |
Line | Count | Source | 276 | 4.24k | { | 277 | 4.24k | return ob->ob_type; | 278 | 4.24k | } |
Unexecuted instantiation: thread.c:_Py_TYPE Line | Count | Source | 276 | 32.4M | { | 277 | 32.4M | return ob->ob_type; | 278 | 32.4M | } |
Unexecuted instantiation: tracemalloc.c:_Py_TYPE Unexecuted instantiation: getopt.c:_Py_TYPE Unexecuted instantiation: pystrcmp.c:_Py_TYPE Unexecuted instantiation: pystrtod.c:_Py_TYPE Unexecuted instantiation: pystrhex.c:_Py_TYPE Unexecuted instantiation: dtoa.c:_Py_TYPE Unexecuted instantiation: fileutils.c:_Py_TYPE Unexecuted instantiation: suggestions.c:_Py_TYPE Unexecuted instantiation: perf_trampoline.c:_Py_TYPE Unexecuted instantiation: perf_jit_trampoline.c:_Py_TYPE Unexecuted instantiation: remote_debugging.c:_Py_TYPE Unexecuted instantiation: dynload_shlib.c:_Py_TYPE Unexecuted instantiation: config.c:_Py_TYPE Unexecuted instantiation: gcmodule.c:_Py_TYPE Unexecuted instantiation: _asynciomodule.c:_Py_TYPE Unexecuted instantiation: atexitmodule.c:_Py_TYPE Unexecuted instantiation: faulthandler.c:_Py_TYPE Line | Count | Source | 276 | 49.0k | { | 277 | 49.0k | return ob->ob_type; | 278 | 49.0k | } |
Unexecuted instantiation: signalmodule.c:_Py_TYPE Unexecuted instantiation: _tracemalloc.c:_Py_TYPE Unexecuted instantiation: _suggestions.c:_Py_TYPE _datetimemodule.c:_Py_TYPE Line | Count | Source | 276 | 12 | { | 277 | 12 | return ob->ob_type; | 278 | 12 | } |
Line | Count | Source | 276 | 725k | { | 277 | 725k | return ob->ob_type; | 278 | 725k | } |
_collectionsmodule.c:_Py_TYPE Line | Count | Source | 276 | 108k | { | 277 | 108k | return ob->ob_type; | 278 | 108k | } |
Unexecuted instantiation: errnomodule.c:_Py_TYPE Line | Count | Source | 276 | 3.13k | { | 277 | 3.13k | return ob->ob_type; | 278 | 3.13k | } |
Line | Count | Source | 276 | 11.4k | { | 277 | 11.4k | return ob->ob_type; | 278 | 11.4k | } |
Line | Count | Source | 276 | 9.13k | { | 277 | 9.13k | return ob->ob_type; | 278 | 9.13k | } |
Line | Count | Source | 276 | 20.8k | { | 277 | 20.8k | return ob->ob_type; | 278 | 20.8k | } |
Line | Count | Source | 276 | 11.5k | { | 277 | 11.5k | return ob->ob_type; | 278 | 11.5k | } |
Line | Count | Source | 276 | 90.9k | { | 277 | 90.9k | return ob->ob_type; | 278 | 90.9k | } |
Line | Count | Source | 276 | 18.3M | { | 277 | 18.3M | return ob->ob_type; | 278 | 18.3M | } |
itertoolsmodule.c:_Py_TYPE Line | Count | Source | 276 | 514 | { | 277 | 514 | return ob->ob_type; | 278 | 514 | } |
Line | Count | Source | 276 | 167M | { | 277 | 167M | return ob->ob_type; | 278 | 167M | } |
Unexecuted instantiation: _sysconfig.c:_Py_TYPE Line | Count | Source | 276 | 5.82k | { | 277 | 5.82k | return ob->ob_type; | 278 | 5.82k | } |
Unexecuted instantiation: timemodule.c:_Py_TYPE Unexecuted instantiation: _typesmodule.c:_Py_TYPE Unexecuted instantiation: _typingmodule.c:_Py_TYPE Line | Count | Source | 276 | 9.29k | { | 277 | 9.29k | return ob->ob_type; | 278 | 9.29k | } |
Line | Count | Source | 276 | 109k | { | 277 | 109k | return ob->ob_type; | 278 | 109k | } |
_functoolsmodule.c:_Py_TYPE Line | Count | Source | 276 | 52.6k | { | 277 | 52.6k | return ob->ob_type; | 278 | 52.6k | } |
Unexecuted instantiation: _localemodule.c:_Py_TYPE Unexecuted instantiation: _opcode.c:_Py_TYPE Line | Count | Source | 276 | 1.77M | { | 277 | 1.77M | return ob->ob_type; | 278 | 1.77M | } |
Line | Count | Source | 276 | 16 | { | 277 | 16 | return ob->ob_type; | 278 | 16 | } |
Unexecuted instantiation: symtablemodule.c:_Py_TYPE Unexecuted instantiation: pwdmodule.c:_Py_TYPE Line | Count | Source | 276 | 448 | { | 277 | 448 | return ob->ob_type; | 278 | 448 | } |
Unexecuted instantiation: frozen.c:_Py_TYPE Unexecuted instantiation: getbuildinfo.c:_Py_TYPE Unexecuted instantiation: peg_api.c:_Py_TYPE Unexecuted instantiation: file_tokenizer.c:_Py_TYPE Unexecuted instantiation: helpers.c:_Py_TYPE Unexecuted instantiation: myreadline.c:_Py_TYPE Line | Count | Source | 276 | 1.77G | { | 277 | 1.77G | return ob->ob_type; | 278 | 1.77G | } |
Unexecuted instantiation: boolobject.c:_Py_TYPE Line | Count | Source | 276 | 645k | { | 277 | 645k | return ob->ob_type; | 278 | 645k | } |
bytearrayobject.c:_Py_TYPE Line | Count | Source | 276 | 3.83M | { | 277 | 3.83M | return ob->ob_type; | 278 | 3.83M | } |
Line | Count | Source | 276 | 12.3k | { | 277 | 12.3k | return ob->ob_type; | 278 | 12.3k | } |
Line | Count | Source | 276 | 3.39k | { | 277 | 3.39k | return ob->ob_type; | 278 | 3.39k | } |
Line | Count | Source | 276 | 22.3M | { | 277 | 22.3M | return ob->ob_type; | 278 | 22.3M | } |
Line | Count | Source | 276 | 1.73M | { | 277 | 1.73M | return ob->ob_type; | 278 | 1.73M | } |
Line | Count | Source | 276 | 9.32k | { | 277 | 9.32k | return ob->ob_type; | 278 | 9.32k | } |
Line | Count | Source | 276 | 806M | { | 277 | 806M | return ob->ob_type; | 278 | 806M | } |
Line | Count | Source | 276 | 141M | { | 277 | 141M | return ob->ob_type; | 278 | 141M | } |
Line | Count | Source | 276 | 57.2M | { | 277 | 57.2M | return ob->ob_type; | 278 | 57.2M | } |
Line | Count | Source | 276 | 1.02k | { | 277 | 1.02k | return ob->ob_type; | 278 | 1.02k | } |
Line | Count | Source | 276 | 32 | { | 277 | 32 | return ob->ob_type; | 278 | 32 | } |
Line | Count | Source | 276 | 28.9k | { | 277 | 28.9k | return ob->ob_type; | 278 | 28.9k | } |
Unexecuted instantiation: interpolationobject.c:_Py_TYPE Line | Count | Source | 276 | 3.81M | { | 277 | 3.81M | return ob->ob_type; | 278 | 3.81M | } |
Line | Count | Source | 276 | 8 | { | 277 | 8 | return ob->ob_type; | 278 | 8 | } |
Line | Count | Source | 276 | 3.90k | { | 277 | 3.90k | return ob->ob_type; | 278 | 3.90k | } |
namespaceobject.c:_Py_TYPE Line | Count | Source | 276 | 222 | { | 277 | 222 | return ob->ob_type; | 278 | 222 | } |
Unexecuted instantiation: _contextvars.c:_Py_TYPE Line | Count | Source | 276 | 558k | { | 277 | 558k | return ob->ob_type; | 278 | 558k | } |
Unexecuted instantiation: Python-tokenize.c:_Py_TYPE Unexecuted instantiation: asdl.c:_Py_TYPE Unexecuted instantiation: assemble.c:_Py_TYPE Line | Count | Source | 276 | 11.0k | { | 277 | 11.0k | return ob->ob_type; | 278 | 11.0k | } |
ast_preprocess.c:_Py_TYPE Line | Count | Source | 276 | 511 | { | 277 | 511 | return ob->ob_type; | 278 | 511 | } |
Unexecuted instantiation: ast_unparse.c:_Py_TYPE Unexecuted instantiation: critical_section.c:_Py_TYPE Line | Count | Source | 276 | 16 | { | 277 | 16 | return ob->ob_type; | 278 | 16 | } |
Unexecuted instantiation: getcopyright.c:_Py_TYPE Unexecuted instantiation: getplatform.c:_Py_TYPE Unexecuted instantiation: getversion.c:_Py_TYPE Unexecuted instantiation: optimizer.c:_Py_TYPE Unexecuted instantiation: pathconfig.c:_Py_TYPE Unexecuted instantiation: structmember.c:_Py_TYPE Line | Count | Source | 276 | 67.0k | { | 277 | 67.0k | return ob->ob_type; | 278 | 67.0k | } |
Unexecuted instantiation: pegen_errors.c:_Py_TYPE Unexecuted instantiation: parser.c:_Py_TYPE Unexecuted instantiation: buffer.c:_Py_TYPE Unexecuted instantiation: lexer.c:_Py_TYPE Unexecuted instantiation: state.c:_Py_TYPE Unexecuted instantiation: readline_tokenizer.c:_Py_TYPE Unexecuted instantiation: string_tokenizer.c:_Py_TYPE Unexecuted instantiation: utf8_tokenizer.c:_Py_TYPE Unexecuted instantiation: getcompiler.c:_Py_TYPE Unexecuted instantiation: mystrtoul.c:_Py_TYPE Unexecuted instantiation: token.c:_Py_TYPE action_helpers.c:_Py_TYPE Line | Count | Source | 276 | 151k | { | 277 | 151k | return ob->ob_type; | 278 | 151k | } |
Unexecuted instantiation: string_parser.c:_Py_TYPE |
279 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
280 | 32.1G | # define Py_TYPE(ob) _Py_TYPE(_PyObject_CAST(ob)) |
281 | | #else |
282 | | # define Py_TYPE(ob) _Py_TYPE(ob) |
283 | | #endif |
284 | | #endif |
285 | | |
286 | | PyAPI_DATA(PyTypeObject) PyLong_Type; |
287 | | PyAPI_DATA(PyTypeObject) PyBool_Type; |
288 | | |
289 | | #ifndef _Py_OPAQUE_PYOBJECT |
290 | | // bpo-39573: The Py_SET_SIZE() function must be used to set an object size. |
291 | 5.96G | static inline Py_ssize_t Py_SIZE(PyObject *ob) { |
292 | 5.96G | assert(Py_TYPE(ob) != &PyLong_Type); |
293 | 5.96G | assert(Py_TYPE(ob) != &PyBool_Type); |
294 | 5.96G | return _PyVarObject_CAST(ob)->ob_size; |
295 | 5.96G | } Line | Count | Source | 291 | 28.4M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 28.4M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 28.4M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 28.4M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 28.4M | } |
Line | Count | Source | 291 | 82.1M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 82.1M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 82.1M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 82.1M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 82.1M | } |
Line | Count | Source | 291 | 12.2M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 12.2M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 12.2M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 12.2M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 12.2M | } |
genericaliasobject.c:Py_SIZE Line | Count | Source | 291 | 4 | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 4 | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 4 | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 4 | return _PyVarObject_CAST(ob)->ob_size; | 295 | 4 | } |
Line | Count | Source | 291 | 663k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 663k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 663k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 663k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 663k | } |
Line | Count | Source | 291 | 1.87G | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 1.87G | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 1.87G | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 1.87G | return _PyVarObject_CAST(ob)->ob_size; | 295 | 1.87G | } |
Line | Count | Source | 291 | 7.01k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 7.01k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 7.01k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 7.01k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 7.01k | } |
Line | Count | Source | 291 | 87.0k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 87.0k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 87.0k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 87.0k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 87.0k | } |
Line | Count | Source | 291 | 790 | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 790 | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 790 | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 790 | return _PyVarObject_CAST(ob)->ob_size; | 295 | 790 | } |
Line | Count | Source | 291 | 976 | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 976 | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 976 | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 976 | return _PyVarObject_CAST(ob)->ob_size; | 295 | 976 | } |
Line | Count | Source | 291 | 7.85M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 7.85M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 7.85M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 7.85M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 7.85M | } |
Unexecuted instantiation: obmalloc.c:Py_SIZE Unexecuted instantiation: picklebufobject.c:Py_SIZE Unexecuted instantiation: rangeobject.c:Py_SIZE Unexecuted instantiation: setobject.c:Py_SIZE Unexecuted instantiation: sliceobject.c:Py_SIZE Line | Count | Source | 291 | 5.00k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 5.00k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 5.00k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 5.00k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 5.00k | } |
Unexecuted instantiation: templateobject.c:Py_SIZE Line | Count | Source | 291 | 1.06G | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 1.06G | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 1.06G | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 1.06G | return _PyVarObject_CAST(ob)->ob_size; | 295 | 1.06G | } |
Line | Count | Source | 291 | 582M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 582M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 582M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 582M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 582M | } |
Unexecuted instantiation: typevarobject.c:Py_SIZE Unexecuted instantiation: unicode_format.c:Py_SIZE Unexecuted instantiation: unicode_formatter.c:Py_SIZE Unexecuted instantiation: unicode_writer.c:Py_SIZE Unexecuted instantiation: unicodectype.c:Py_SIZE Line | Count | Source | 291 | 86.8M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 86.8M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 86.8M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 86.8M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 86.8M | } |
Line | Count | Source | 291 | 463 | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 463 | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 463 | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 463 | return _PyVarObject_CAST(ob)->ob_size; | 295 | 463 | } |
Unexecuted instantiation: weakrefobject.c:Py_SIZE Line | Count | Source | 291 | 28.6k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 28.6k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 28.6k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 28.6k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 28.6k | } |
Line | Count | Source | 291 | 1.97M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 1.97M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 1.97M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 1.97M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 1.97M | } |
Line | Count | Source | 291 | 1.92G | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 1.92G | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 1.92G | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 1.92G | return _PyVarObject_CAST(ob)->ob_size; | 295 | 1.92G | } |
Line | Count | Source | 291 | 783k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 783k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 783k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 783k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 783k | } |
Line | Count | Source | 291 | 804 | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 804 | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 804 | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 804 | return _PyVarObject_CAST(ob)->ob_size; | 295 | 804 | } |
Line | Count | Source | 291 | 41.6k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 41.6k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 41.6k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 41.6k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 41.6k | } |
Unexecuted instantiation: context.c:Py_SIZE Unexecuted instantiation: errors.c:Py_SIZE Line | Count | Source | 291 | 115k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 115k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 115k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 115k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 115k | } |
Unexecuted instantiation: frame.c:Py_SIZE Unexecuted instantiation: future.c:Py_SIZE Line | Count | Source | 291 | 122k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 122k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 122k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 122k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 122k | } |
Unexecuted instantiation: gc_gil.c:Py_SIZE Line | Count | Source | 291 | 3.23M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 3.23M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 3.23M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 3.23M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 3.23M | } |
Unexecuted instantiation: ceval_gil.c:Py_SIZE Unexecuted instantiation: hamt.c:Py_SIZE Unexecuted instantiation: hashtable.c:Py_SIZE Line | Count | Source | 291 | 112 | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 112 | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 112 | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 112 | return _PyVarObject_CAST(ob)->ob_size; | 295 | 112 | } |
Unexecuted instantiation: importdl.c:Py_SIZE Line | Count | Source | 291 | 64 | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 64 | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 64 | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 64 | return _PyVarObject_CAST(ob)->ob_size; | 295 | 64 | } |
Unexecuted instantiation: instrumentation.c:Py_SIZE Unexecuted instantiation: instruction_sequence.c:Py_SIZE Line | Count | Source | 291 | 14.7M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 14.7M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 14.7M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 14.7M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 14.7M | } |
Unexecuted instantiation: legacy_tracing.c:Py_SIZE Unexecuted instantiation: lock.c:Py_SIZE Line | Count | Source | 291 | 321k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 321k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 321k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 321k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 321k | } |
Unexecuted instantiation: modsupport.c:Py_SIZE Unexecuted instantiation: mysnprintf.c:Py_SIZE Unexecuted instantiation: parking_lot.c:Py_SIZE Unexecuted instantiation: preconfig.c:Py_SIZE Unexecuted instantiation: pyarena.c:Py_SIZE Unexecuted instantiation: pyctype.c:Py_SIZE Unexecuted instantiation: pyhash.c:Py_SIZE Unexecuted instantiation: pylifecycle.c:Py_SIZE Unexecuted instantiation: pymath.c:Py_SIZE Unexecuted instantiation: pystate.c:Py_SIZE Line | Count | Source | 291 | 21.1k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 21.1k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 21.1k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 21.1k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 21.1k | } |
Unexecuted instantiation: pytime.c:Py_SIZE Unexecuted instantiation: qsbr.c:Py_SIZE Unexecuted instantiation: bootstrap_hash.c:Py_SIZE Line | Count | Source | 291 | 14.7k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 14.7k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 14.7k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 14.7k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 14.7k | } |
Line | Count | Source | 291 | 48.6k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 48.6k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 48.6k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 48.6k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 48.6k | } |
Unexecuted instantiation: sysmodule.c:Py_SIZE Unexecuted instantiation: thread.c:Py_SIZE Unexecuted instantiation: traceback.c:Py_SIZE Unexecuted instantiation: tracemalloc.c:Py_SIZE Unexecuted instantiation: getopt.c:Py_SIZE Unexecuted instantiation: pystrcmp.c:Py_SIZE Unexecuted instantiation: pystrtod.c:Py_SIZE Unexecuted instantiation: pystrhex.c:Py_SIZE Unexecuted instantiation: dtoa.c:Py_SIZE Unexecuted instantiation: fileutils.c:Py_SIZE Unexecuted instantiation: suggestions.c:Py_SIZE Unexecuted instantiation: perf_trampoline.c:Py_SIZE Unexecuted instantiation: perf_jit_trampoline.c:Py_SIZE Unexecuted instantiation: remote_debugging.c:Py_SIZE Unexecuted instantiation: dynload_shlib.c:Py_SIZE Unexecuted instantiation: config.c:Py_SIZE Unexecuted instantiation: gcmodule.c:Py_SIZE Unexecuted instantiation: _asynciomodule.c:Py_SIZE Unexecuted instantiation: atexitmodule.c:Py_SIZE Unexecuted instantiation: faulthandler.c:Py_SIZE Line | Count | Source | 291 | 6.16k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 6.16k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 6.16k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 6.16k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 6.16k | } |
Unexecuted instantiation: signalmodule.c:Py_SIZE Unexecuted instantiation: _tracemalloc.c:Py_SIZE Unexecuted instantiation: _suggestions.c:Py_SIZE Unexecuted instantiation: _datetimemodule.c:Py_SIZE Unexecuted instantiation: _codecsmodule.c:Py_SIZE _collectionsmodule.c:Py_SIZE Line | Count | Source | 291 | 152M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 152M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 152M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 152M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 152M | } |
Unexecuted instantiation: errnomodule.c:Py_SIZE Unexecuted instantiation: _iomodule.c:Py_SIZE Unexecuted instantiation: iobase.c:Py_SIZE Line | Count | Source | 291 | 1.31k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 1.31k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 1.31k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 1.31k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 1.31k | } |
Line | Count | Source | 291 | 28.3k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 28.3k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 28.3k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 28.3k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 28.3k | } |
Line | Count | Source | 291 | 1.07k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 1.07k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 1.07k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 1.07k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 1.07k | } |
Line | Count | Source | 291 | 16.0k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 16.0k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 16.0k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 16.0k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 16.0k | } |
Line | Count | Source | 291 | 31.9k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 31.9k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 31.9k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 31.9k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 31.9k | } |
itertoolsmodule.c:Py_SIZE Line | Count | Source | 291 | 928 | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 928 | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 928 | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 928 | return _PyVarObject_CAST(ob)->ob_size; | 295 | 928 | } |
Line | Count | Source | 291 | 31.8M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 31.8M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 31.8M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 31.8M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 31.8M | } |
Unexecuted instantiation: _sysconfig.c:Py_SIZE Unexecuted instantiation: _threadmodule.c:Py_SIZE Unexecuted instantiation: timemodule.c:Py_SIZE Unexecuted instantiation: _typesmodule.c:Py_SIZE Unexecuted instantiation: _typingmodule.c:Py_SIZE Unexecuted instantiation: _weakref.c:Py_SIZE Line | Count | Source | 291 | 19.6k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 19.6k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 19.6k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 19.6k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 19.6k | } |
_functoolsmodule.c:Py_SIZE Line | Count | Source | 291 | 40.5k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 40.5k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 40.5k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 40.5k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 40.5k | } |
Unexecuted instantiation: _localemodule.c:Py_SIZE Unexecuted instantiation: _opcode.c:Py_SIZE Line | Count | Source | 291 | 1.48M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 1.48M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 1.48M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 1.48M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 1.48M | } |
Unexecuted instantiation: _stat.c:Py_SIZE Unexecuted instantiation: symtablemodule.c:Py_SIZE Unexecuted instantiation: pwdmodule.c:Py_SIZE Line | Count | Source | 291 | 144 | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 144 | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 144 | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 144 | return _PyVarObject_CAST(ob)->ob_size; | 295 | 144 | } |
Unexecuted instantiation: frozen.c:Py_SIZE Unexecuted instantiation: getbuildinfo.c:Py_SIZE Unexecuted instantiation: peg_api.c:Py_SIZE Unexecuted instantiation: file_tokenizer.c:Py_SIZE Unexecuted instantiation: helpers.c:Py_SIZE Unexecuted instantiation: myreadline.c:Py_SIZE Line | Count | Source | 291 | 95.0k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 95.0k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 95.0k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 95.0k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 95.0k | } |
Unexecuted instantiation: boolobject.c:Py_SIZE Line | Count | Source | 291 | 322k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 322k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 322k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 322k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 322k | } |
bytearrayobject.c:Py_SIZE Line | Count | Source | 291 | 72.6M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 72.6M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 72.6M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 72.6M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 72.6M | } |
Unexecuted instantiation: capsule.c:Py_SIZE Unexecuted instantiation: cellobject.c:Py_SIZE Unexecuted instantiation: classobject.c:Py_SIZE Line | Count | Source | 291 | 2.03M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 2.03M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 2.03M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 2.03M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 2.03M | } |
Unexecuted instantiation: complexobject.c:Py_SIZE Line | Count | Source | 291 | 14.0M | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 14.0M | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 14.0M | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 14.0M | return _PyVarObject_CAST(ob)->ob_size; | 295 | 14.0M | } |
Unexecuted instantiation: enumobject.c:Py_SIZE Unexecuted instantiation: genobject.c:Py_SIZE Unexecuted instantiation: fileobject.c:Py_SIZE Line | Count | Source | 291 | 16 | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 16 | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 16 | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 16 | return _PyVarObject_CAST(ob)->ob_size; | 295 | 16 | } |
Unexecuted instantiation: funcobject.c:Py_SIZE Unexecuted instantiation: interpolationobject.c:Py_SIZE Unexecuted instantiation: iterobject.c:Py_SIZE Line | Count | Source | 291 | 16 | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 16 | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 16 | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 16 | return _PyVarObject_CAST(ob)->ob_size; | 295 | 16 | } |
Unexecuted instantiation: methodobject.c:Py_SIZE Unexecuted instantiation: namespaceobject.c:Py_SIZE Unexecuted instantiation: _contextvars.c:Py_SIZE Line | Count | Source | 291 | 140 | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 140 | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 140 | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 140 | return _PyVarObject_CAST(ob)->ob_size; | 295 | 140 | } |
Unexecuted instantiation: Python-tokenize.c:Py_SIZE Unexecuted instantiation: asdl.c:Py_SIZE Line | Count | Source | 291 | 635k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 635k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 635k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 635k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 635k | } |
Unexecuted instantiation: ast.c:Py_SIZE Unexecuted instantiation: ast_preprocess.c:Py_SIZE Unexecuted instantiation: ast_unparse.c:Py_SIZE Unexecuted instantiation: critical_section.c:Py_SIZE Unexecuted instantiation: crossinterp.c:Py_SIZE Unexecuted instantiation: getcopyright.c:Py_SIZE Unexecuted instantiation: getplatform.c:Py_SIZE Unexecuted instantiation: getversion.c:Py_SIZE Unexecuted instantiation: optimizer.c:Py_SIZE Unexecuted instantiation: pathconfig.c:Py_SIZE Unexecuted instantiation: structmember.c:Py_SIZE Unexecuted instantiation: pegen.c:Py_SIZE Unexecuted instantiation: pegen_errors.c:Py_SIZE Unexecuted instantiation: parser.c:Py_SIZE Unexecuted instantiation: buffer.c:Py_SIZE Line | Count | Source | 291 | 480 | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 480 | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 480 | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 480 | return _PyVarObject_CAST(ob)->ob_size; | 295 | 480 | } |
Unexecuted instantiation: state.c:Py_SIZE Unexecuted instantiation: readline_tokenizer.c:Py_SIZE Unexecuted instantiation: string_tokenizer.c:Py_SIZE Unexecuted instantiation: utf8_tokenizer.c:Py_SIZE Unexecuted instantiation: getcompiler.c:Py_SIZE Unexecuted instantiation: mystrtoul.c:Py_SIZE Unexecuted instantiation: token.c:Py_SIZE Line | Count | Source | 291 | 4.65k | static inline Py_ssize_t Py_SIZE(PyObject *ob) { | 292 | 4.65k | assert(Py_TYPE(ob) != &PyLong_Type); | 293 | 4.65k | assert(Py_TYPE(ob) != &PyBool_Type); | 294 | 4.65k | return _PyVarObject_CAST(ob)->ob_size; | 295 | 4.65k | } |
Unexecuted instantiation: string_parser.c:Py_SIZE |
296 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
297 | 5.91G | # define Py_SIZE(ob) Py_SIZE(_PyObject_CAST(ob)) |
298 | | #endif |
299 | | #endif // !defined(_Py_OPAQUE_PYOBJECT) |
300 | | |
301 | 14.7G | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { |
302 | 14.7G | return Py_TYPE(ob) == type; |
303 | 14.7G | } Line | Count | Source | 301 | 8.17M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 8.17M | return Py_TYPE(ob) == type; | 303 | 8.17M | } |
Unexecuted instantiation: call.c:Py_IS_TYPE Line | Count | Source | 301 | 32.4M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 32.4M | return Py_TYPE(ob) == type; | 303 | 32.4M | } |
Unexecuted instantiation: genericaliasobject.c:Py_IS_TYPE Line | Count | Source | 301 | 16.0M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 16.0M | return Py_TYPE(ob) == type; | 303 | 16.0M | } |
Line | Count | Source | 301 | 396M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 396M | return Py_TYPE(ob) == type; | 303 | 396M | } |
Line | Count | Source | 301 | 958M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 958M | return Py_TYPE(ob) == type; | 303 | 958M | } |
Line | Count | Source | 301 | 3.05G | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 3.05G | return Py_TYPE(ob) == type; | 303 | 3.05G | } |
memoryobject.c:Py_IS_TYPE Line | Count | Source | 301 | 1.57k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 1.57k | return Py_TYPE(ob) == type; | 303 | 1.57k | } |
moduleobject.c:Py_IS_TYPE Line | Count | Source | 301 | 20.4M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 20.4M | return Py_TYPE(ob) == type; | 303 | 20.4M | } |
Line | Count | Source | 301 | 570M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 570M | return Py_TYPE(ob) == type; | 303 | 570M | } |
Unexecuted instantiation: obmalloc.c:Py_IS_TYPE Unexecuted instantiation: picklebufobject.c:Py_IS_TYPE Line | Count | Source | 301 | 521 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 521 | return Py_TYPE(ob) == type; | 303 | 521 | } |
Line | Count | Source | 301 | 123M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 123M | return Py_TYPE(ob) == type; | 303 | 123M | } |
Line | Count | Source | 301 | 812 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 812 | return Py_TYPE(ob) == type; | 303 | 812 | } |
Unexecuted instantiation: structseq.c:Py_IS_TYPE Unexecuted instantiation: templateobject.c:Py_IS_TYPE Line | Count | Source | 301 | 313M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 313M | return Py_TYPE(ob) == type; | 303 | 313M | } |
Line | Count | Source | 301 | 197M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 197M | return Py_TYPE(ob) == type; | 303 | 197M | } |
Unexecuted instantiation: typevarobject.c:Py_IS_TYPE unicode_format.c:Py_IS_TYPE Line | Count | Source | 301 | 92.3M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 92.3M | return Py_TYPE(ob) == type; | 303 | 92.3M | } |
unicode_formatter.c:Py_IS_TYPE Line | Count | Source | 301 | 16.5M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 16.5M | return Py_TYPE(ob) == type; | 303 | 16.5M | } |
Unexecuted instantiation: unicode_writer.c:Py_IS_TYPE Unexecuted instantiation: unicodectype.c:Py_IS_TYPE unicodeobject.c:Py_IS_TYPE Line | Count | Source | 301 | 343M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 343M | return Py_TYPE(ob) == type; | 303 | 343M | } |
Line | Count | Source | 301 | 475 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 475 | return Py_TYPE(ob) == type; | 303 | 475 | } |
weakrefobject.c:Py_IS_TYPE Line | Count | Source | 301 | 544k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 544k | return Py_TYPE(ob) == type; | 303 | 544k | } |
Line | Count | Source | 301 | 14.3k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 14.3k | return Py_TYPE(ob) == type; | 303 | 14.3k | } |
Line | Count | Source | 301 | 40.2M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 40.2M | return Py_TYPE(ob) == type; | 303 | 40.2M | } |
Line | Count | Source | 301 | 7.69G | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 7.69G | return Py_TYPE(ob) == type; | 303 | 7.69G | } |
Line | Count | Source | 301 | 1.32M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 1.32M | return Py_TYPE(ob) == type; | 303 | 1.32M | } |
Line | Count | Source | 301 | 48 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 48 | return Py_TYPE(ob) == type; | 303 | 48 | } |
Line | Count | Source | 301 | 172k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 172k | return Py_TYPE(ob) == type; | 303 | 172k | } |
Line | Count | Source | 301 | 14.3k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 14.3k | return Py_TYPE(ob) == type; | 303 | 14.3k | } |
Unexecuted instantiation: errors.c:Py_IS_TYPE Line | Count | Source | 301 | 69.7k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 69.7k | return Py_TYPE(ob) == type; | 303 | 69.7k | } |
Unexecuted instantiation: frame.c:Py_IS_TYPE Unexecuted instantiation: future.c:Py_IS_TYPE Line | Count | Source | 301 | 65.3M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 65.3M | return Py_TYPE(ob) == type; | 303 | 65.3M | } |
Unexecuted instantiation: gc_gil.c:Py_IS_TYPE Line | Count | Source | 301 | 11.2M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 11.2M | return Py_TYPE(ob) == type; | 303 | 11.2M | } |
Unexecuted instantiation: ceval_gil.c:Py_IS_TYPE Unexecuted instantiation: hamt.c:Py_IS_TYPE Unexecuted instantiation: hashtable.c:Py_IS_TYPE Line | Count | Source | 301 | 1.18k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 1.18k | return Py_TYPE(ob) == type; | 303 | 1.18k | } |
Line | Count | Source | 301 | 778 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 778 | return Py_TYPE(ob) == type; | 303 | 778 | } |
Line | Count | Source | 301 | 128 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 128 | return Py_TYPE(ob) == type; | 303 | 128 | } |
Unexecuted instantiation: instrumentation.c:Py_IS_TYPE Unexecuted instantiation: instruction_sequence.c:Py_IS_TYPE Line | Count | Source | 301 | 14.0k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 14.0k | return Py_TYPE(ob) == type; | 303 | 14.0k | } |
Unexecuted instantiation: legacy_tracing.c:Py_IS_TYPE Unexecuted instantiation: lock.c:Py_IS_TYPE Line | Count | Source | 301 | 515k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 515k | return Py_TYPE(ob) == type; | 303 | 515k | } |
Line | Count | Source | 301 | 9.29k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 9.29k | return Py_TYPE(ob) == type; | 303 | 9.29k | } |
Unexecuted instantiation: mysnprintf.c:Py_IS_TYPE Unexecuted instantiation: parking_lot.c:Py_IS_TYPE Unexecuted instantiation: preconfig.c:Py_IS_TYPE Unexecuted instantiation: pyarena.c:Py_IS_TYPE Unexecuted instantiation: pyctype.c:Py_IS_TYPE Unexecuted instantiation: pyhash.c:Py_IS_TYPE Unexecuted instantiation: pylifecycle.c:Py_IS_TYPE Unexecuted instantiation: pymath.c:Py_IS_TYPE Unexecuted instantiation: pystate.c:Py_IS_TYPE Unexecuted instantiation: pythonrun.c:Py_IS_TYPE Unexecuted instantiation: pytime.c:Py_IS_TYPE Unexecuted instantiation: qsbr.c:Py_IS_TYPE Unexecuted instantiation: bootstrap_hash.c:Py_IS_TYPE Line | Count | Source | 301 | 20.9M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 20.9M | return Py_TYPE(ob) == type; | 303 | 20.9M | } |
Unexecuted instantiation: symtable.c:Py_IS_TYPE Line | Count | Source | 301 | 666 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 666 | return Py_TYPE(ob) == type; | 303 | 666 | } |
Unexecuted instantiation: thread.c:Py_IS_TYPE Line | Count | Source | 301 | 32.4M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 32.4M | return Py_TYPE(ob) == type; | 303 | 32.4M | } |
Unexecuted instantiation: tracemalloc.c:Py_IS_TYPE Unexecuted instantiation: getopt.c:Py_IS_TYPE Unexecuted instantiation: pystrcmp.c:Py_IS_TYPE Unexecuted instantiation: pystrtod.c:Py_IS_TYPE Unexecuted instantiation: pystrhex.c:Py_IS_TYPE Unexecuted instantiation: dtoa.c:Py_IS_TYPE Unexecuted instantiation: fileutils.c:Py_IS_TYPE Unexecuted instantiation: suggestions.c:Py_IS_TYPE Unexecuted instantiation: perf_trampoline.c:Py_IS_TYPE Unexecuted instantiation: perf_jit_trampoline.c:Py_IS_TYPE Unexecuted instantiation: remote_debugging.c:Py_IS_TYPE Unexecuted instantiation: dynload_shlib.c:Py_IS_TYPE Unexecuted instantiation: config.c:Py_IS_TYPE Unexecuted instantiation: gcmodule.c:Py_IS_TYPE Unexecuted instantiation: _asynciomodule.c:Py_IS_TYPE Unexecuted instantiation: atexitmodule.c:Py_IS_TYPE Unexecuted instantiation: faulthandler.c:Py_IS_TYPE Unexecuted instantiation: posixmodule.c:Py_IS_TYPE Unexecuted instantiation: signalmodule.c:Py_IS_TYPE Unexecuted instantiation: _tracemalloc.c:Py_IS_TYPE Unexecuted instantiation: _suggestions.c:Py_IS_TYPE _datetimemodule.c:Py_IS_TYPE Line | Count | Source | 301 | 6 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 6 | return Py_TYPE(ob) == type; | 303 | 6 | } |
Unexecuted instantiation: _codecsmodule.c:Py_IS_TYPE Unexecuted instantiation: _collectionsmodule.c:Py_IS_TYPE Unexecuted instantiation: errnomodule.c:Py_IS_TYPE Unexecuted instantiation: _iomodule.c:Py_IS_TYPE Unexecuted instantiation: iobase.c:Py_IS_TYPE Line | Count | Source | 301 | 1.31k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 1.31k | return Py_TYPE(ob) == type; | 303 | 1.31k | } |
Line | Count | Source | 301 | 9.44k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 9.44k | return Py_TYPE(ob) == type; | 303 | 9.44k | } |
Line | Count | Source | 301 | 2.15k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 2.15k | return Py_TYPE(ob) == type; | 303 | 2.15k | } |
Line | Count | Source | 301 | 128 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 128 | return Py_TYPE(ob) == type; | 303 | 128 | } |
Line | Count | Source | 301 | 18.1M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 18.1M | return Py_TYPE(ob) == type; | 303 | 18.1M | } |
Unexecuted instantiation: itertoolsmodule.c:Py_IS_TYPE Line | Count | Source | 301 | 122k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 122k | return Py_TYPE(ob) == type; | 303 | 122k | } |
Unexecuted instantiation: _sysconfig.c:Py_IS_TYPE Unexecuted instantiation: _threadmodule.c:Py_IS_TYPE Unexecuted instantiation: timemodule.c:Py_IS_TYPE Unexecuted instantiation: _typesmodule.c:Py_IS_TYPE Unexecuted instantiation: _typingmodule.c:Py_IS_TYPE Line | Count | Source | 301 | 3.09k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 3.09k | return Py_TYPE(ob) == type; | 303 | 3.09k | } |
Line | Count | Source | 301 | 1.05k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 1.05k | return Py_TYPE(ob) == type; | 303 | 1.05k | } |
_functoolsmodule.c:Py_IS_TYPE Line | Count | Source | 301 | 45 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 45 | return Py_TYPE(ob) == type; | 303 | 45 | } |
Unexecuted instantiation: _localemodule.c:Py_IS_TYPE Unexecuted instantiation: _opcode.c:Py_IS_TYPE Line | Count | Source | 301 | 1.48M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 1.48M | return Py_TYPE(ob) == type; | 303 | 1.48M | } |
Unexecuted instantiation: _stat.c:Py_IS_TYPE Unexecuted instantiation: symtablemodule.c:Py_IS_TYPE Unexecuted instantiation: pwdmodule.c:Py_IS_TYPE Line | Count | Source | 301 | 16 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 16 | return Py_TYPE(ob) == type; | 303 | 16 | } |
Unexecuted instantiation: frozen.c:Py_IS_TYPE Unexecuted instantiation: getbuildinfo.c:Py_IS_TYPE Unexecuted instantiation: peg_api.c:Py_IS_TYPE Unexecuted instantiation: file_tokenizer.c:Py_IS_TYPE Unexecuted instantiation: helpers.c:Py_IS_TYPE Unexecuted instantiation: myreadline.c:Py_IS_TYPE Line | Count | Source | 301 | 200M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 200M | return Py_TYPE(ob) == type; | 303 | 200M | } |
Unexecuted instantiation: boolobject.c:Py_IS_TYPE Unexecuted instantiation: bytes_methods.c:Py_IS_TYPE bytearrayobject.c:Py_IS_TYPE Line | Count | Source | 301 | 10.1k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 10.1k | return Py_TYPE(ob) == type; | 303 | 10.1k | } |
Line | Count | Source | 301 | 12.3k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 12.3k | return Py_TYPE(ob) == type; | 303 | 12.3k | } |
Line | Count | Source | 301 | 3.39k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 3.39k | return Py_TYPE(ob) == type; | 303 | 3.39k | } |
Unexecuted instantiation: classobject.c:Py_IS_TYPE Line | Count | Source | 301 | 1.37M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 1.37M | return Py_TYPE(ob) == type; | 303 | 1.37M | } |
complexobject.c:Py_IS_TYPE Line | Count | Source | 301 | 9.32k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 9.32k | return Py_TYPE(ob) == type; | 303 | 9.32k | } |
Line | Count | Source | 301 | 436M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 436M | return Py_TYPE(ob) == type; | 303 | 436M | } |
Unexecuted instantiation: enumobject.c:Py_IS_TYPE Line | Count | Source | 301 | 57.2M | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 57.2M | return Py_TYPE(ob) == type; | 303 | 57.2M | } |
Unexecuted instantiation: fileobject.c:Py_IS_TYPE Line | Count | Source | 301 | 16 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 16 | return Py_TYPE(ob) == type; | 303 | 16 | } |
Line | Count | Source | 301 | 66 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 66 | return Py_TYPE(ob) == type; | 303 | 66 | } |
Unexecuted instantiation: interpolationobject.c:Py_IS_TYPE Unexecuted instantiation: iterobject.c:Py_IS_TYPE Line | Count | Source | 301 | 8 | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 8 | return Py_TYPE(ob) == type; | 303 | 8 | } |
methodobject.c:Py_IS_TYPE Line | Count | Source | 301 | 3.82k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 3.82k | return Py_TYPE(ob) == type; | 303 | 3.82k | } |
Unexecuted instantiation: namespaceobject.c:Py_IS_TYPE Unexecuted instantiation: _contextvars.c:Py_IS_TYPE Unexecuted instantiation: Python-ast.c:Py_IS_TYPE Unexecuted instantiation: Python-tokenize.c:Py_IS_TYPE Unexecuted instantiation: asdl.c:Py_IS_TYPE Unexecuted instantiation: assemble.c:Py_IS_TYPE Line | Count | Source | 301 | 11.0k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 11.0k | return Py_TYPE(ob) == type; | 303 | 11.0k | } |
Unexecuted instantiation: ast_preprocess.c:Py_IS_TYPE Unexecuted instantiation: ast_unparse.c:Py_IS_TYPE Unexecuted instantiation: critical_section.c:Py_IS_TYPE Unexecuted instantiation: crossinterp.c:Py_IS_TYPE Unexecuted instantiation: getcopyright.c:Py_IS_TYPE Unexecuted instantiation: getplatform.c:Py_IS_TYPE Unexecuted instantiation: getversion.c:Py_IS_TYPE Unexecuted instantiation: optimizer.c:Py_IS_TYPE Unexecuted instantiation: pathconfig.c:Py_IS_TYPE Unexecuted instantiation: structmember.c:Py_IS_TYPE Line | Count | Source | 301 | 12.1k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 12.1k | return Py_TYPE(ob) == type; | 303 | 12.1k | } |
Unexecuted instantiation: pegen_errors.c:Py_IS_TYPE Unexecuted instantiation: parser.c:Py_IS_TYPE Unexecuted instantiation: buffer.c:Py_IS_TYPE Unexecuted instantiation: lexer.c:Py_IS_TYPE Unexecuted instantiation: state.c:Py_IS_TYPE Unexecuted instantiation: readline_tokenizer.c:Py_IS_TYPE Unexecuted instantiation: string_tokenizer.c:Py_IS_TYPE Unexecuted instantiation: utf8_tokenizer.c:Py_IS_TYPE Unexecuted instantiation: getcompiler.c:Py_IS_TYPE Unexecuted instantiation: mystrtoul.c:Py_IS_TYPE Unexecuted instantiation: token.c:Py_IS_TYPE action_helpers.c:Py_IS_TYPE Line | Count | Source | 301 | 151k | static inline int Py_IS_TYPE(PyObject *ob, PyTypeObject *type) { | 302 | 151k | return Py_TYPE(ob) == type; | 303 | 151k | } |
Unexecuted instantiation: string_parser.c:Py_IS_TYPE |
304 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
305 | 24.1G | # define Py_IS_TYPE(ob, type) Py_IS_TYPE(_PyObject_CAST(ob), (type)) |
306 | | #endif |
307 | | |
308 | | |
309 | | #ifndef _Py_OPAQUE_PYOBJECT |
310 | 963M | static inline void Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { |
311 | 963M | ob->ob_type = type; |
312 | 963M | } bytesobject.c:Py_SET_TYPE Line | Count | Source | 310 | 20.7M | static inline void Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { | 311 | 20.7M | ob->ob_type = type; | 312 | 20.7M | } |
Unexecuted instantiation: call.c:Py_SET_TYPE Unexecuted instantiation: exceptions.c:Py_SET_TYPE Unexecuted instantiation: genericaliasobject.c:Py_SET_TYPE floatobject.c:Py_SET_TYPE Line | Count | Source | 310 | 640k | static inline void Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { | 311 | 640k | ob->ob_type = type; | 312 | 640k | } |
Unexecuted instantiation: listobject.c:Py_SET_TYPE Line | Count | Source | 310 | 87.2M | static inline void Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { | 311 | 87.2M | ob->ob_type = type; | 312 | 87.2M | } |
Unexecuted instantiation: dictobject.c:Py_SET_TYPE Unexecuted instantiation: memoryobject.c:Py_SET_TYPE moduleobject.c:Py_SET_TYPE Line | Count | Source | 310 | 453 | static inline void Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { | 311 | 453 | ob->ob_type = type; | 312 | 453 | } |
Line | Count | Source | 310 | 48.3k | static inline void Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { | 311 | 48.3k | ob->ob_type = type; | 312 | 48.3k | } |
Unexecuted instantiation: obmalloc.c:Py_SET_TYPE Unexecuted instantiation: picklebufobject.c:Py_SET_TYPE Unexecuted instantiation: rangeobject.c:Py_SET_TYPE Unexecuted instantiation: setobject.c:Py_SET_TYPE Unexecuted instantiation: sliceobject.c:Py_SET_TYPE Line | Count | Source | 310 | 128 | static inline void Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { | 311 | 128 | ob->ob_type = type; | 312 | 128 | } |
Unexecuted instantiation: templateobject.c:Py_SET_TYPE Unexecuted instantiation: tupleobject.c:Py_SET_TYPE Line | Count | Source | 310 | 115M | static inline void Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { | 311 | 115M | ob->ob_type = type; | 312 | 115M | } |
Unexecuted instantiation: typevarobject.c:Py_SET_TYPE Unexecuted instantiation: unicode_format.c:Py_SET_TYPE Unexecuted instantiation: unicode_formatter.c:Py_SET_TYPE Unexecuted instantiation: unicode_writer.c:Py_SET_TYPE Unexecuted instantiation: unicodectype.c:Py_SET_TYPE unicodeobject.c:Py_SET_TYPE Line | Count | Source | 310 | 454M | static inline void Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { | 311 | 454M | ob->ob_type = type; | 312 | 454M | } |
Unexecuted instantiation: unionobject.c:Py_SET_TYPE Unexecuted instantiation: weakrefobject.c:Py_SET_TYPE Unexecuted instantiation: _warnings.c:Py_SET_TYPE Unexecuted instantiation: bltinmodule.c:Py_SET_TYPE Unexecuted instantiation: ceval.c:Py_SET_TYPE Unexecuted instantiation: codecs.c:Py_SET_TYPE Unexecuted instantiation: codegen.c:Py_SET_TYPE Unexecuted instantiation: compile.c:Py_SET_TYPE Unexecuted instantiation: context.c:Py_SET_TYPE Unexecuted instantiation: errors.c:Py_SET_TYPE Unexecuted instantiation: flowgraph.c:Py_SET_TYPE Unexecuted instantiation: frame.c:Py_SET_TYPE Unexecuted instantiation: future.c:Py_SET_TYPE Line | Count | Source | 310 | 284M | static inline void Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { | 311 | 284M | ob->ob_type = type; | 312 | 284M | } |
Unexecuted instantiation: gc_gil.c:Py_SET_TYPE Unexecuted instantiation: getargs.c:Py_SET_TYPE Unexecuted instantiation: ceval_gil.c:Py_SET_TYPE Unexecuted instantiation: hamt.c:Py_SET_TYPE Unexecuted instantiation: hashtable.c:Py_SET_TYPE Unexecuted instantiation: import.c:Py_SET_TYPE Unexecuted instantiation: importdl.c:Py_SET_TYPE Unexecuted instantiation: initconfig.c:Py_SET_TYPE Unexecuted instantiation: instrumentation.c:Py_SET_TYPE Unexecuted instantiation: instruction_sequence.c:Py_SET_TYPE Unexecuted instantiation: intrinsics.c:Py_SET_TYPE Unexecuted instantiation: legacy_tracing.c:Py_SET_TYPE Unexecuted instantiation: lock.c:Py_SET_TYPE Unexecuted instantiation: marshal.c:Py_SET_TYPE Unexecuted instantiation: modsupport.c:Py_SET_TYPE Unexecuted instantiation: mysnprintf.c:Py_SET_TYPE Unexecuted instantiation: parking_lot.c:Py_SET_TYPE Unexecuted instantiation: preconfig.c:Py_SET_TYPE Unexecuted instantiation: pyarena.c:Py_SET_TYPE Unexecuted instantiation: pyctype.c:Py_SET_TYPE Unexecuted instantiation: pyhash.c:Py_SET_TYPE Unexecuted instantiation: pylifecycle.c:Py_SET_TYPE Unexecuted instantiation: pymath.c:Py_SET_TYPE Unexecuted instantiation: pystate.c:Py_SET_TYPE Unexecuted instantiation: pythonrun.c:Py_SET_TYPE Unexecuted instantiation: pytime.c:Py_SET_TYPE Unexecuted instantiation: qsbr.c:Py_SET_TYPE Unexecuted instantiation: bootstrap_hash.c:Py_SET_TYPE Unexecuted instantiation: specialize.c:Py_SET_TYPE Unexecuted instantiation: symtable.c:Py_SET_TYPE Unexecuted instantiation: sysmodule.c:Py_SET_TYPE Unexecuted instantiation: thread.c:Py_SET_TYPE Unexecuted instantiation: traceback.c:Py_SET_TYPE Unexecuted instantiation: tracemalloc.c:Py_SET_TYPE Unexecuted instantiation: getopt.c:Py_SET_TYPE Unexecuted instantiation: pystrcmp.c:Py_SET_TYPE Unexecuted instantiation: pystrtod.c:Py_SET_TYPE Unexecuted instantiation: pystrhex.c:Py_SET_TYPE Unexecuted instantiation: dtoa.c:Py_SET_TYPE Unexecuted instantiation: fileutils.c:Py_SET_TYPE Unexecuted instantiation: suggestions.c:Py_SET_TYPE Unexecuted instantiation: perf_trampoline.c:Py_SET_TYPE Unexecuted instantiation: perf_jit_trampoline.c:Py_SET_TYPE Unexecuted instantiation: remote_debugging.c:Py_SET_TYPE Unexecuted instantiation: dynload_shlib.c:Py_SET_TYPE Unexecuted instantiation: config.c:Py_SET_TYPE Unexecuted instantiation: gcmodule.c:Py_SET_TYPE Unexecuted instantiation: _asynciomodule.c:Py_SET_TYPE Unexecuted instantiation: atexitmodule.c:Py_SET_TYPE Unexecuted instantiation: faulthandler.c:Py_SET_TYPE Unexecuted instantiation: posixmodule.c:Py_SET_TYPE Unexecuted instantiation: signalmodule.c:Py_SET_TYPE Unexecuted instantiation: _tracemalloc.c:Py_SET_TYPE Unexecuted instantiation: _suggestions.c:Py_SET_TYPE _datetimemodule.c:Py_SET_TYPE Line | Count | Source | 310 | 70 | static inline void Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { | 311 | 70 | ob->ob_type = type; | 312 | 70 | } |
Unexecuted instantiation: _codecsmodule.c:Py_SET_TYPE Unexecuted instantiation: _collectionsmodule.c:Py_SET_TYPE Unexecuted instantiation: errnomodule.c:Py_SET_TYPE Unexecuted instantiation: _iomodule.c:Py_SET_TYPE Unexecuted instantiation: iobase.c:Py_SET_TYPE Unexecuted instantiation: fileio.c:Py_SET_TYPE Unexecuted instantiation: bytesio.c:Py_SET_TYPE Unexecuted instantiation: bufferedio.c:Py_SET_TYPE Unexecuted instantiation: textio.c:Py_SET_TYPE Unexecuted instantiation: stringio.c:Py_SET_TYPE itertoolsmodule.c:Py_SET_TYPE Line | Count | Source | 310 | 12 | static inline void Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { | 311 | 12 | ob->ob_type = type; | 312 | 12 | } |
Unexecuted instantiation: sre.c:Py_SET_TYPE Unexecuted instantiation: _sysconfig.c:Py_SET_TYPE Unexecuted instantiation: _threadmodule.c:Py_SET_TYPE Unexecuted instantiation: timemodule.c:Py_SET_TYPE Unexecuted instantiation: _typesmodule.c:Py_SET_TYPE Unexecuted instantiation: _typingmodule.c:Py_SET_TYPE Unexecuted instantiation: _weakref.c:Py_SET_TYPE Unexecuted instantiation: _abc.c:Py_SET_TYPE Unexecuted instantiation: _functoolsmodule.c:Py_SET_TYPE Unexecuted instantiation: _localemodule.c:Py_SET_TYPE Unexecuted instantiation: _opcode.c:Py_SET_TYPE Unexecuted instantiation: _operator.c:Py_SET_TYPE Unexecuted instantiation: _stat.c:Py_SET_TYPE Unexecuted instantiation: symtablemodule.c:Py_SET_TYPE Unexecuted instantiation: pwdmodule.c:Py_SET_TYPE Unexecuted instantiation: getpath.c:Py_SET_TYPE Unexecuted instantiation: frozen.c:Py_SET_TYPE Unexecuted instantiation: getbuildinfo.c:Py_SET_TYPE Unexecuted instantiation: peg_api.c:Py_SET_TYPE Unexecuted instantiation: file_tokenizer.c:Py_SET_TYPE Unexecuted instantiation: helpers.c:Py_SET_TYPE Unexecuted instantiation: myreadline.c:Py_SET_TYPE Unexecuted instantiation: abstract.c:Py_SET_TYPE Unexecuted instantiation: boolobject.c:Py_SET_TYPE Unexecuted instantiation: bytes_methods.c:Py_SET_TYPE Unexecuted instantiation: bytearrayobject.c:Py_SET_TYPE Unexecuted instantiation: capsule.c:Py_SET_TYPE Unexecuted instantiation: cellobject.c:Py_SET_TYPE Unexecuted instantiation: classobject.c:Py_SET_TYPE Unexecuted instantiation: codeobject.c:Py_SET_TYPE complexobject.c:Py_SET_TYPE Line | Count | Source | 310 | 3.66k | static inline void Py_SET_TYPE(PyObject *ob, PyTypeObject *type) { | 311 | 3.66k | ob->ob_type = type; | 312 | 3.66k | } |
Unexecuted instantiation: descrobject.c:Py_SET_TYPE Unexecuted instantiation: enumobject.c:Py_SET_TYPE Unexecuted instantiation: genobject.c:Py_SET_TYPE Unexecuted instantiation: fileobject.c:Py_SET_TYPE Unexecuted instantiation: frameobject.c:Py_SET_TYPE Unexecuted instantiation: funcobject.c:Py_SET_TYPE Unexecuted instantiation: interpolationobject.c:Py_SET_TYPE Unexecuted instantiation: iterobject.c:Py_SET_TYPE Unexecuted instantiation: odictobject.c:Py_SET_TYPE Unexecuted instantiation: methodobject.c:Py_SET_TYPE Unexecuted instantiation: namespaceobject.c:Py_SET_TYPE Unexecuted instantiation: _contextvars.c:Py_SET_TYPE Unexecuted instantiation: Python-ast.c:Py_SET_TYPE Unexecuted instantiation: Python-tokenize.c:Py_SET_TYPE Unexecuted instantiation: asdl.c:Py_SET_TYPE Unexecuted instantiation: assemble.c:Py_SET_TYPE Unexecuted instantiation: ast.c:Py_SET_TYPE Unexecuted instantiation: ast_preprocess.c:Py_SET_TYPE Unexecuted instantiation: ast_unparse.c:Py_SET_TYPE Unexecuted instantiation: critical_section.c:Py_SET_TYPE Unexecuted instantiation: crossinterp.c:Py_SET_TYPE Unexecuted instantiation: getcopyright.c:Py_SET_TYPE Unexecuted instantiation: getplatform.c:Py_SET_TYPE Unexecuted instantiation: getversion.c:Py_SET_TYPE Unexecuted instantiation: optimizer.c:Py_SET_TYPE Unexecuted instantiation: pathconfig.c:Py_SET_TYPE Unexecuted instantiation: structmember.c:Py_SET_TYPE Unexecuted instantiation: pegen.c:Py_SET_TYPE Unexecuted instantiation: pegen_errors.c:Py_SET_TYPE Unexecuted instantiation: parser.c:Py_SET_TYPE Unexecuted instantiation: buffer.c:Py_SET_TYPE Unexecuted instantiation: lexer.c:Py_SET_TYPE Unexecuted instantiation: state.c:Py_SET_TYPE Unexecuted instantiation: readline_tokenizer.c:Py_SET_TYPE Unexecuted instantiation: string_tokenizer.c:Py_SET_TYPE Unexecuted instantiation: utf8_tokenizer.c:Py_SET_TYPE Unexecuted instantiation: getcompiler.c:Py_SET_TYPE Unexecuted instantiation: mystrtoul.c:Py_SET_TYPE Unexecuted instantiation: token.c:Py_SET_TYPE Unexecuted instantiation: action_helpers.c:Py_SET_TYPE Unexecuted instantiation: string_parser.c:Py_SET_TYPE |
313 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
314 | 963M | # define Py_SET_TYPE(ob, type) Py_SET_TYPE(_PyObject_CAST(ob), type) |
315 | | #endif |
316 | | |
317 | 1.17G | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { |
318 | 1.17G | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyLong_Type); |
319 | 1.17G | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyBool_Type); |
320 | | #ifdef Py_GIL_DISABLED |
321 | | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size); |
322 | | #else |
323 | 1.17G | ob->ob_size = size; |
324 | 1.17G | #endif |
325 | 1.17G | } bytesobject.c:Py_SET_SIZE Line | Count | Source | 317 | 24.5M | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { | 318 | 24.5M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyLong_Type); | 319 | 24.5M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyBool_Type); | 320 | | #ifdef Py_GIL_DISABLED | 321 | | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size); | 322 | | #else | 323 | 24.5M | ob->ob_size = size; | 324 | 24.5M | #endif | 325 | 24.5M | } |
Unexecuted instantiation: call.c:Py_SET_SIZE Unexecuted instantiation: exceptions.c:Py_SET_SIZE Unexecuted instantiation: genericaliasobject.c:Py_SET_SIZE Unexecuted instantiation: floatobject.c:Py_SET_SIZE Line | Count | Source | 317 | 622M | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { | 318 | 622M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyLong_Type); | 319 | 622M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyBool_Type); | 320 | | #ifdef Py_GIL_DISABLED | 321 | | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size); | 322 | | #else | 323 | 622M | ob->ob_size = size; | 324 | 622M | #endif | 325 | 622M | } |
Unexecuted instantiation: longobject.c:Py_SET_SIZE Unexecuted instantiation: dictobject.c:Py_SET_SIZE Unexecuted instantiation: memoryobject.c:Py_SET_SIZE Unexecuted instantiation: moduleobject.c:Py_SET_SIZE Line | Count | Source | 317 | 33.2k | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { | 318 | 33.2k | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyLong_Type); | 319 | 33.2k | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyBool_Type); | 320 | | #ifdef Py_GIL_DISABLED | 321 | | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size); | 322 | | #else | 323 | 33.2k | ob->ob_size = size; | 324 | 33.2k | #endif | 325 | 33.2k | } |
Unexecuted instantiation: obmalloc.c:Py_SET_SIZE Unexecuted instantiation: picklebufobject.c:Py_SET_SIZE Unexecuted instantiation: rangeobject.c:Py_SET_SIZE Unexecuted instantiation: setobject.c:Py_SET_SIZE Unexecuted instantiation: sliceobject.c:Py_SET_SIZE Line | Count | Source | 317 | 5.09k | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { | 318 | 5.09k | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyLong_Type); | 319 | 5.09k | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyBool_Type); | 320 | | #ifdef Py_GIL_DISABLED | 321 | | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size); | 322 | | #else | 323 | 5.09k | ob->ob_size = size; | 324 | 5.09k | #endif | 325 | 5.09k | } |
Unexecuted instantiation: templateobject.c:Py_SET_SIZE Unexecuted instantiation: tupleobject.c:Py_SET_SIZE Line | Count | Source | 317 | 2.17M | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { | 318 | 2.17M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyLong_Type); | 319 | 2.17M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyBool_Type); | 320 | | #ifdef Py_GIL_DISABLED | 321 | | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size); | 322 | | #else | 323 | 2.17M | ob->ob_size = size; | 324 | 2.17M | #endif | 325 | 2.17M | } |
Unexecuted instantiation: typevarobject.c:Py_SET_SIZE Unexecuted instantiation: unicode_format.c:Py_SET_SIZE Unexecuted instantiation: unicode_formatter.c:Py_SET_SIZE Unexecuted instantiation: unicode_writer.c:Py_SET_SIZE Unexecuted instantiation: unicodectype.c:Py_SET_SIZE unicodeobject.c:Py_SET_SIZE Line | Count | Source | 317 | 18.5M | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { | 318 | 18.5M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyLong_Type); | 319 | 18.5M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyBool_Type); | 320 | | #ifdef Py_GIL_DISABLED | 321 | | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size); | 322 | | #else | 323 | 18.5M | ob->ob_size = size; | 324 | 18.5M | #endif | 325 | 18.5M | } |
Unexecuted instantiation: unionobject.c:Py_SET_SIZE Unexecuted instantiation: weakrefobject.c:Py_SET_SIZE Unexecuted instantiation: _warnings.c:Py_SET_SIZE Unexecuted instantiation: bltinmodule.c:Py_SET_SIZE Line | Count | Source | 317 | 295M | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { | 318 | 295M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyLong_Type); | 319 | 295M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyBool_Type); | 320 | | #ifdef Py_GIL_DISABLED | 321 | | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size); | 322 | | #else | 323 | 295M | ob->ob_size = size; | 324 | 295M | #endif | 325 | 295M | } |
Unexecuted instantiation: codecs.c:Py_SET_SIZE Unexecuted instantiation: codegen.c:Py_SET_SIZE Unexecuted instantiation: compile.c:Py_SET_SIZE Unexecuted instantiation: context.c:Py_SET_SIZE Unexecuted instantiation: errors.c:Py_SET_SIZE Unexecuted instantiation: flowgraph.c:Py_SET_SIZE Unexecuted instantiation: frame.c:Py_SET_SIZE Unexecuted instantiation: future.c:Py_SET_SIZE Line | Count | Source | 317 | 132M | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { | 318 | 132M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyLong_Type); | 319 | 132M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyBool_Type); | 320 | | #ifdef Py_GIL_DISABLED | 321 | | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size); | 322 | | #else | 323 | 132M | ob->ob_size = size; | 324 | 132M | #endif | 325 | 132M | } |
Unexecuted instantiation: gc_gil.c:Py_SET_SIZE Unexecuted instantiation: getargs.c:Py_SET_SIZE Unexecuted instantiation: ceval_gil.c:Py_SET_SIZE Unexecuted instantiation: hamt.c:Py_SET_SIZE Unexecuted instantiation: hashtable.c:Py_SET_SIZE Unexecuted instantiation: import.c:Py_SET_SIZE Unexecuted instantiation: importdl.c:Py_SET_SIZE Unexecuted instantiation: initconfig.c:Py_SET_SIZE Unexecuted instantiation: instrumentation.c:Py_SET_SIZE Unexecuted instantiation: instruction_sequence.c:Py_SET_SIZE Unexecuted instantiation: intrinsics.c:Py_SET_SIZE Unexecuted instantiation: legacy_tracing.c:Py_SET_SIZE Unexecuted instantiation: lock.c:Py_SET_SIZE Unexecuted instantiation: marshal.c:Py_SET_SIZE Unexecuted instantiation: modsupport.c:Py_SET_SIZE Unexecuted instantiation: mysnprintf.c:Py_SET_SIZE Unexecuted instantiation: parking_lot.c:Py_SET_SIZE Unexecuted instantiation: preconfig.c:Py_SET_SIZE Unexecuted instantiation: pyarena.c:Py_SET_SIZE Unexecuted instantiation: pyctype.c:Py_SET_SIZE Unexecuted instantiation: pyhash.c:Py_SET_SIZE Unexecuted instantiation: pylifecycle.c:Py_SET_SIZE Unexecuted instantiation: pymath.c:Py_SET_SIZE Unexecuted instantiation: pystate.c:Py_SET_SIZE Unexecuted instantiation: pythonrun.c:Py_SET_SIZE Unexecuted instantiation: pytime.c:Py_SET_SIZE Unexecuted instantiation: qsbr.c:Py_SET_SIZE Unexecuted instantiation: bootstrap_hash.c:Py_SET_SIZE Unexecuted instantiation: specialize.c:Py_SET_SIZE Unexecuted instantiation: symtable.c:Py_SET_SIZE Unexecuted instantiation: sysmodule.c:Py_SET_SIZE Unexecuted instantiation: thread.c:Py_SET_SIZE Unexecuted instantiation: traceback.c:Py_SET_SIZE Unexecuted instantiation: tracemalloc.c:Py_SET_SIZE Unexecuted instantiation: getopt.c:Py_SET_SIZE Unexecuted instantiation: pystrcmp.c:Py_SET_SIZE Unexecuted instantiation: pystrtod.c:Py_SET_SIZE Unexecuted instantiation: pystrhex.c:Py_SET_SIZE Unexecuted instantiation: dtoa.c:Py_SET_SIZE Unexecuted instantiation: fileutils.c:Py_SET_SIZE Unexecuted instantiation: suggestions.c:Py_SET_SIZE Unexecuted instantiation: perf_trampoline.c:Py_SET_SIZE Unexecuted instantiation: perf_jit_trampoline.c:Py_SET_SIZE Unexecuted instantiation: remote_debugging.c:Py_SET_SIZE Unexecuted instantiation: dynload_shlib.c:Py_SET_SIZE Unexecuted instantiation: config.c:Py_SET_SIZE Unexecuted instantiation: gcmodule.c:Py_SET_SIZE Unexecuted instantiation: _asynciomodule.c:Py_SET_SIZE Unexecuted instantiation: atexitmodule.c:Py_SET_SIZE Unexecuted instantiation: faulthandler.c:Py_SET_SIZE Unexecuted instantiation: posixmodule.c:Py_SET_SIZE Unexecuted instantiation: signalmodule.c:Py_SET_SIZE Unexecuted instantiation: _tracemalloc.c:Py_SET_SIZE Unexecuted instantiation: _suggestions.c:Py_SET_SIZE Unexecuted instantiation: _datetimemodule.c:Py_SET_SIZE Unexecuted instantiation: _codecsmodule.c:Py_SET_SIZE _collectionsmodule.c:Py_SET_SIZE Line | Count | Source | 317 | 76.0M | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { | 318 | 76.0M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyLong_Type); | 319 | 76.0M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyBool_Type); | 320 | | #ifdef Py_GIL_DISABLED | 321 | | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size); | 322 | | #else | 323 | 76.0M | ob->ob_size = size; | 324 | 76.0M | #endif | 325 | 76.0M | } |
Unexecuted instantiation: errnomodule.c:Py_SET_SIZE Unexecuted instantiation: _iomodule.c:Py_SET_SIZE Unexecuted instantiation: iobase.c:Py_SET_SIZE Unexecuted instantiation: fileio.c:Py_SET_SIZE Unexecuted instantiation: bytesio.c:Py_SET_SIZE Unexecuted instantiation: bufferedio.c:Py_SET_SIZE Unexecuted instantiation: textio.c:Py_SET_SIZE Unexecuted instantiation: stringio.c:Py_SET_SIZE Unexecuted instantiation: itertoolsmodule.c:Py_SET_SIZE Unexecuted instantiation: sre.c:Py_SET_SIZE Unexecuted instantiation: _sysconfig.c:Py_SET_SIZE Unexecuted instantiation: _threadmodule.c:Py_SET_SIZE Unexecuted instantiation: timemodule.c:Py_SET_SIZE Unexecuted instantiation: _typesmodule.c:Py_SET_SIZE Unexecuted instantiation: _typingmodule.c:Py_SET_SIZE Unexecuted instantiation: _weakref.c:Py_SET_SIZE Unexecuted instantiation: _abc.c:Py_SET_SIZE Unexecuted instantiation: _functoolsmodule.c:Py_SET_SIZE Unexecuted instantiation: _localemodule.c:Py_SET_SIZE Unexecuted instantiation: _opcode.c:Py_SET_SIZE Unexecuted instantiation: _operator.c:Py_SET_SIZE Unexecuted instantiation: _stat.c:Py_SET_SIZE Unexecuted instantiation: symtablemodule.c:Py_SET_SIZE Unexecuted instantiation: pwdmodule.c:Py_SET_SIZE Unexecuted instantiation: getpath.c:Py_SET_SIZE Unexecuted instantiation: frozen.c:Py_SET_SIZE Unexecuted instantiation: getbuildinfo.c:Py_SET_SIZE Unexecuted instantiation: peg_api.c:Py_SET_SIZE Unexecuted instantiation: file_tokenizer.c:Py_SET_SIZE Unexecuted instantiation: helpers.c:Py_SET_SIZE Unexecuted instantiation: myreadline.c:Py_SET_SIZE Line | Count | Source | 317 | 206 | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { | 318 | 206 | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyLong_Type); | 319 | 206 | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyBool_Type); | 320 | | #ifdef Py_GIL_DISABLED | 321 | | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size); | 322 | | #else | 323 | 206 | ob->ob_size = size; | 324 | 206 | #endif | 325 | 206 | } |
Unexecuted instantiation: boolobject.c:Py_SET_SIZE Unexecuted instantiation: bytes_methods.c:Py_SET_SIZE bytearrayobject.c:Py_SET_SIZE Line | Count | Source | 317 | 6.05M | static inline void Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) { | 318 | 6.05M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyLong_Type); | 319 | 6.05M | assert(Py_TYPE(_PyObject_CAST(ob)) != &PyBool_Type); | 320 | | #ifdef Py_GIL_DISABLED | 321 | | _Py_atomic_store_ssize_relaxed(&ob->ob_size, size); | 322 | | #else | 323 | 6.05M | ob->ob_size = size; | 324 | 6.05M | #endif | 325 | 6.05M | } |
Unexecuted instantiation: capsule.c:Py_SET_SIZE Unexecuted instantiation: cellobject.c:Py_SET_SIZE Unexecuted instantiation: classobject.c:Py_SET_SIZE Unexecuted instantiation: codeobject.c:Py_SET_SIZE Unexecuted instantiation: complexobject.c:Py_SET_SIZE Unexecuted instantiation: descrobject.c:Py_SET_SIZE Unexecuted instantiation: enumobject.c:Py_SET_SIZE Unexecuted instantiation: genobject.c:Py_SET_SIZE Unexecuted instantiation: fileobject.c:Py_SET_SIZE Unexecuted instantiation: frameobject.c:Py_SET_SIZE Unexecuted instantiation: funcobject.c:Py_SET_SIZE Unexecuted instantiation: interpolationobject.c:Py_SET_SIZE Unexecuted instantiation: iterobject.c:Py_SET_SIZE Unexecuted instantiation: odictobject.c:Py_SET_SIZE Unexecuted instantiation: methodobject.c:Py_SET_SIZE Unexecuted instantiation: namespaceobject.c:Py_SET_SIZE Unexecuted instantiation: _contextvars.c:Py_SET_SIZE Unexecuted instantiation: Python-ast.c:Py_SET_SIZE Unexecuted instantiation: Python-tokenize.c:Py_SET_SIZE Unexecuted instantiation: asdl.c:Py_SET_SIZE Unexecuted instantiation: assemble.c:Py_SET_SIZE Unexecuted instantiation: ast.c:Py_SET_SIZE Unexecuted instantiation: ast_preprocess.c:Py_SET_SIZE Unexecuted instantiation: ast_unparse.c:Py_SET_SIZE Unexecuted instantiation: critical_section.c:Py_SET_SIZE Unexecuted instantiation: crossinterp.c:Py_SET_SIZE Unexecuted instantiation: getcopyright.c:Py_SET_SIZE Unexecuted instantiation: getplatform.c:Py_SET_SIZE Unexecuted instantiation: getversion.c:Py_SET_SIZE Unexecuted instantiation: optimizer.c:Py_SET_SIZE Unexecuted instantiation: pathconfig.c:Py_SET_SIZE Unexecuted instantiation: structmember.c:Py_SET_SIZE Unexecuted instantiation: pegen.c:Py_SET_SIZE Unexecuted instantiation: pegen_errors.c:Py_SET_SIZE Unexecuted instantiation: parser.c:Py_SET_SIZE Unexecuted instantiation: buffer.c:Py_SET_SIZE Unexecuted instantiation: lexer.c:Py_SET_SIZE Unexecuted instantiation: state.c:Py_SET_SIZE Unexecuted instantiation: readline_tokenizer.c:Py_SET_SIZE Unexecuted instantiation: string_tokenizer.c:Py_SET_SIZE Unexecuted instantiation: utf8_tokenizer.c:Py_SET_SIZE Unexecuted instantiation: getcompiler.c:Py_SET_SIZE Unexecuted instantiation: mystrtoul.c:Py_SET_SIZE Unexecuted instantiation: token.c:Py_SET_SIZE Unexecuted instantiation: action_helpers.c:Py_SET_SIZE Unexecuted instantiation: string_parser.c:Py_SET_SIZE |
326 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
327 | 1.17G | # define Py_SET_SIZE(ob, size) Py_SET_SIZE(_PyVarObject_CAST(ob), (size)) |
328 | | #endif |
329 | | #endif // !defined(_Py_OPAQUE_PYOBJECT) |
330 | | |
331 | | |
332 | | /* |
333 | | Type objects contain a string containing the type name (to help somewhat |
334 | | in debugging), the allocation parameters (see PyObject_New() and |
335 | | PyObject_NewVar()), |
336 | | and methods for accessing objects of the type. Methods are optional, a |
337 | | nil pointer meaning that particular kind of access is not available for |
338 | | this type. The Py_DECREF() macro uses the tp_dealloc method without |
339 | | checking for a nil pointer; it should always be implemented except if |
340 | | the implementation can guarantee that the reference count will never |
341 | | reach zero (e.g., for statically allocated type objects). |
342 | | |
343 | | NB: the methods for certain type groups are now contained in separate |
344 | | method blocks. |
345 | | */ |
346 | | |
347 | | typedef PyObject * (*unaryfunc)(PyObject *); |
348 | | typedef PyObject * (*binaryfunc)(PyObject *, PyObject *); |
349 | | typedef PyObject * (*ternaryfunc)(PyObject *, PyObject *, PyObject *); |
350 | | typedef int (*inquiry)(PyObject *); |
351 | | typedef Py_ssize_t (*lenfunc)(PyObject *); |
352 | | typedef PyObject *(*ssizeargfunc)(PyObject *, Py_ssize_t); |
353 | | typedef PyObject *(*ssizessizeargfunc)(PyObject *, Py_ssize_t, Py_ssize_t); |
354 | | typedef int(*ssizeobjargproc)(PyObject *, Py_ssize_t, PyObject *); |
355 | | typedef int(*ssizessizeobjargproc)(PyObject *, Py_ssize_t, Py_ssize_t, PyObject *); |
356 | | typedef int(*objobjargproc)(PyObject *, PyObject *, PyObject *); |
357 | | |
358 | | typedef int (*objobjproc)(PyObject *, PyObject *); |
359 | | typedef int (*visitproc)(PyObject *, void *); |
360 | | typedef int (*traverseproc)(PyObject *, visitproc, void *); |
361 | | |
362 | | |
363 | | typedef void (*freefunc)(void *); |
364 | | typedef void (*destructor)(PyObject *); |
365 | | typedef PyObject *(*getattrfunc)(PyObject *, char *); |
366 | | typedef PyObject *(*getattrofunc)(PyObject *, PyObject *); |
367 | | typedef int (*setattrfunc)(PyObject *, char *, PyObject *); |
368 | | typedef int (*setattrofunc)(PyObject *, PyObject *, PyObject *); |
369 | | typedef PyObject *(*reprfunc)(PyObject *); |
370 | | typedef Py_hash_t (*hashfunc)(PyObject *); |
371 | | typedef PyObject *(*richcmpfunc) (PyObject *, PyObject *, int); |
372 | | typedef PyObject *(*getiterfunc) (PyObject *); |
373 | | typedef PyObject *(*iternextfunc) (PyObject *); |
374 | | typedef PyObject *(*descrgetfunc) (PyObject *, PyObject *, PyObject *); |
375 | | typedef int (*descrsetfunc) (PyObject *, PyObject *, PyObject *); |
376 | | typedef int (*initproc)(PyObject *, PyObject *, PyObject *); |
377 | | typedef PyObject *(*newfunc)(PyTypeObject *, PyObject *, PyObject *); |
378 | | typedef PyObject *(*allocfunc)(PyTypeObject *, Py_ssize_t); |
379 | | |
380 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030c0000 // 3.12 |
381 | | typedef PyObject *(*vectorcallfunc)(PyObject *callable, PyObject *const *args, |
382 | | size_t nargsf, PyObject *kwnames); |
383 | | #endif |
384 | | |
385 | | typedef struct{ |
386 | | int slot; /* slot id, see below */ |
387 | | void *pfunc; /* function pointer */ |
388 | | } PyType_Slot; |
389 | | |
390 | | typedef struct{ |
391 | | const char* name; |
392 | | int basicsize; |
393 | | int itemsize; |
394 | | unsigned int flags; |
395 | | PyType_Slot *slots; /* terminated by slot==0. */ |
396 | | } PyType_Spec; |
397 | | |
398 | | PyAPI_FUNC(PyObject*) PyType_FromSpec(PyType_Spec*); |
399 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000 |
400 | | PyAPI_FUNC(PyObject*) PyType_FromSpecWithBases(PyType_Spec*, PyObject*); |
401 | | #endif |
402 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03040000 |
403 | | PyAPI_FUNC(void*) PyType_GetSlot(PyTypeObject*, int); |
404 | | #endif |
405 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03090000 |
406 | | PyAPI_FUNC(PyObject*) PyType_FromModuleAndSpec(PyObject *, PyType_Spec *, PyObject *); |
407 | | PyAPI_FUNC(PyObject *) PyType_GetModule(PyTypeObject *); |
408 | | PyAPI_FUNC(void *) PyType_GetModuleState(PyTypeObject *); |
409 | | #endif |
410 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030B0000 |
411 | | PyAPI_FUNC(PyObject *) PyType_GetName(PyTypeObject *); |
412 | | PyAPI_FUNC(PyObject *) PyType_GetQualName(PyTypeObject *); |
413 | | #endif |
414 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030D0000 |
415 | | PyAPI_FUNC(PyObject *) PyType_GetFullyQualifiedName(PyTypeObject *type); |
416 | | PyAPI_FUNC(PyObject *) PyType_GetModuleName(PyTypeObject *type); |
417 | | #endif |
418 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030C0000 |
419 | | PyAPI_FUNC(PyObject *) PyType_FromMetaclass(PyTypeObject*, PyObject*, PyType_Spec*, PyObject*); |
420 | | PyAPI_FUNC(void *) PyObject_GetTypeData(PyObject *obj, PyTypeObject *cls); |
421 | | PyAPI_FUNC(Py_ssize_t) PyType_GetTypeDataSize(PyTypeObject *cls); |
422 | | #endif |
423 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030E0000 |
424 | | PyAPI_FUNC(int) PyType_GetBaseByToken(PyTypeObject *, void *, PyTypeObject **); |
425 | 12 | #define Py_TP_USE_SPEC NULL |
426 | | #endif |
427 | | |
428 | | /* Generic type check */ |
429 | | PyAPI_FUNC(int) PyType_IsSubtype(PyTypeObject *, PyTypeObject *); |
430 | | |
431 | 581M | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { |
432 | 581M | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); |
433 | 581M | } Unexecuted instantiation: bytesobject.c:PyObject_TypeCheck Unexecuted instantiation: call.c:PyObject_TypeCheck exceptions.c:PyObject_TypeCheck Line | Count | Source | 431 | 1.03M | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 1.03M | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 1.03M | } |
Unexecuted instantiation: genericaliasobject.c:PyObject_TypeCheck floatobject.c:PyObject_TypeCheck Line | Count | Source | 431 | 12.1M | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 12.1M | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 12.1M | } |
Unexecuted instantiation: listobject.c:PyObject_TypeCheck longobject.c:PyObject_TypeCheck Line | Count | Source | 431 | 2.51k | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 2.51k | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 2.51k | } |
dictobject.c:PyObject_TypeCheck Line | Count | Source | 431 | 14.0M | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 14.0M | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 14.0M | } |
Unexecuted instantiation: memoryobject.c:PyObject_TypeCheck moduleobject.c:PyObject_TypeCheck Line | Count | Source | 431 | 20.4M | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 20.4M | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 20.4M | } |
Unexecuted instantiation: object.c:PyObject_TypeCheck Unexecuted instantiation: obmalloc.c:PyObject_TypeCheck Unexecuted instantiation: picklebufobject.c:PyObject_TypeCheck Unexecuted instantiation: rangeobject.c:PyObject_TypeCheck Unexecuted instantiation: setobject.c:PyObject_TypeCheck Unexecuted instantiation: sliceobject.c:PyObject_TypeCheck Unexecuted instantiation: structseq.c:PyObject_TypeCheck Unexecuted instantiation: templateobject.c:PyObject_TypeCheck Unexecuted instantiation: tupleobject.c:PyObject_TypeCheck typeobject.c:PyObject_TypeCheck Line | Count | Source | 431 | 80.2M | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 80.2M | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 80.2M | } |
Unexecuted instantiation: typevarobject.c:PyObject_TypeCheck Unexecuted instantiation: unicode_format.c:PyObject_TypeCheck Unexecuted instantiation: unicode_formatter.c:PyObject_TypeCheck Unexecuted instantiation: unicode_writer.c:PyObject_TypeCheck Unexecuted instantiation: unicodectype.c:PyObject_TypeCheck Unexecuted instantiation: unicodeobject.c:PyObject_TypeCheck Unexecuted instantiation: unionobject.c:PyObject_TypeCheck weakrefobject.c:PyObject_TypeCheck Line | Count | Source | 431 | 368 | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 368 | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 368 | } |
_warnings.c:PyObject_TypeCheck Line | Count | Source | 431 | 14.3k | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 14.3k | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 14.3k | } |
bltinmodule.c:PyObject_TypeCheck Line | Count | Source | 431 | 9.23M | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 9.23M | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 9.23M | } |
ceval.c:PyObject_TypeCheck Line | Count | Source | 431 | 40 | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 40 | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 40 | } |
codecs.c:PyObject_TypeCheck Line | Count | Source | 431 | 497k | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 497k | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 497k | } |
codegen.c:PyObject_TypeCheck Line | Count | Source | 431 | 24 | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 24 | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 24 | } |
Unexecuted instantiation: compile.c:PyObject_TypeCheck Unexecuted instantiation: context.c:PyObject_TypeCheck Unexecuted instantiation: errors.c:PyObject_TypeCheck Unexecuted instantiation: flowgraph.c:PyObject_TypeCheck Unexecuted instantiation: frame.c:PyObject_TypeCheck Unexecuted instantiation: future.c:PyObject_TypeCheck Line | Count | Source | 431 | 1.06M | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 1.06M | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 1.06M | } |
Unexecuted instantiation: gc_gil.c:PyObject_TypeCheck Unexecuted instantiation: getargs.c:PyObject_TypeCheck Unexecuted instantiation: ceval_gil.c:PyObject_TypeCheck Unexecuted instantiation: hamt.c:PyObject_TypeCheck Unexecuted instantiation: hashtable.c:PyObject_TypeCheck import.c:PyObject_TypeCheck Line | Count | Source | 431 | 982 | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 982 | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 982 | } |
importdl.c:PyObject_TypeCheck Line | Count | Source | 431 | 389 | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 389 | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 389 | } |
Unexecuted instantiation: initconfig.c:PyObject_TypeCheck Unexecuted instantiation: instrumentation.c:PyObject_TypeCheck Unexecuted instantiation: instruction_sequence.c:PyObject_TypeCheck Unexecuted instantiation: intrinsics.c:PyObject_TypeCheck Unexecuted instantiation: legacy_tracing.c:PyObject_TypeCheck Unexecuted instantiation: lock.c:PyObject_TypeCheck Unexecuted instantiation: marshal.c:PyObject_TypeCheck modsupport.c:PyObject_TypeCheck Line | Count | Source | 431 | 9.29k | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 9.29k | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 9.29k | } |
Unexecuted instantiation: mysnprintf.c:PyObject_TypeCheck Unexecuted instantiation: parking_lot.c:PyObject_TypeCheck Unexecuted instantiation: preconfig.c:PyObject_TypeCheck Unexecuted instantiation: pyarena.c:PyObject_TypeCheck Unexecuted instantiation: pyctype.c:PyObject_TypeCheck Unexecuted instantiation: pyhash.c:PyObject_TypeCheck Unexecuted instantiation: pylifecycle.c:PyObject_TypeCheck Unexecuted instantiation: pymath.c:PyObject_TypeCheck Unexecuted instantiation: pystate.c:PyObject_TypeCheck Unexecuted instantiation: pythonrun.c:PyObject_TypeCheck Unexecuted instantiation: pytime.c:PyObject_TypeCheck Unexecuted instantiation: qsbr.c:PyObject_TypeCheck Unexecuted instantiation: bootstrap_hash.c:PyObject_TypeCheck specialize.c:PyObject_TypeCheck Line | Count | Source | 431 | 559 | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 559 | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 559 | } |
Unexecuted instantiation: symtable.c:PyObject_TypeCheck Unexecuted instantiation: sysmodule.c:PyObject_TypeCheck Unexecuted instantiation: thread.c:PyObject_TypeCheck Unexecuted instantiation: traceback.c:PyObject_TypeCheck Unexecuted instantiation: tracemalloc.c:PyObject_TypeCheck Unexecuted instantiation: getopt.c:PyObject_TypeCheck Unexecuted instantiation: pystrcmp.c:PyObject_TypeCheck Unexecuted instantiation: pystrtod.c:PyObject_TypeCheck Unexecuted instantiation: pystrhex.c:PyObject_TypeCheck Unexecuted instantiation: dtoa.c:PyObject_TypeCheck Unexecuted instantiation: fileutils.c:PyObject_TypeCheck Unexecuted instantiation: suggestions.c:PyObject_TypeCheck Unexecuted instantiation: perf_trampoline.c:PyObject_TypeCheck Unexecuted instantiation: perf_jit_trampoline.c:PyObject_TypeCheck Unexecuted instantiation: remote_debugging.c:PyObject_TypeCheck Unexecuted instantiation: dynload_shlib.c:PyObject_TypeCheck Unexecuted instantiation: config.c:PyObject_TypeCheck Unexecuted instantiation: gcmodule.c:PyObject_TypeCheck Unexecuted instantiation: _asynciomodule.c:PyObject_TypeCheck Unexecuted instantiation: atexitmodule.c:PyObject_TypeCheck Unexecuted instantiation: faulthandler.c:PyObject_TypeCheck Unexecuted instantiation: posixmodule.c:PyObject_TypeCheck Unexecuted instantiation: signalmodule.c:PyObject_TypeCheck Unexecuted instantiation: _tracemalloc.c:PyObject_TypeCheck Unexecuted instantiation: _suggestions.c:PyObject_TypeCheck _datetimemodule.c:PyObject_TypeCheck Line | Count | Source | 431 | 6 | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 6 | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 6 | } |
Unexecuted instantiation: _codecsmodule.c:PyObject_TypeCheck Unexecuted instantiation: _collectionsmodule.c:PyObject_TypeCheck Unexecuted instantiation: errnomodule.c:PyObject_TypeCheck Unexecuted instantiation: _iomodule.c:PyObject_TypeCheck Unexecuted instantiation: iobase.c:PyObject_TypeCheck Unexecuted instantiation: fileio.c:PyObject_TypeCheck Unexecuted instantiation: bytesio.c:PyObject_TypeCheck Unexecuted instantiation: bufferedio.c:PyObject_TypeCheck Unexecuted instantiation: textio.c:PyObject_TypeCheck Unexecuted instantiation: stringio.c:PyObject_TypeCheck Unexecuted instantiation: itertoolsmodule.c:PyObject_TypeCheck Unexecuted instantiation: sre.c:PyObject_TypeCheck Unexecuted instantiation: _sysconfig.c:PyObject_TypeCheck Unexecuted instantiation: _threadmodule.c:PyObject_TypeCheck Unexecuted instantiation: timemodule.c:PyObject_TypeCheck Unexecuted instantiation: _typesmodule.c:PyObject_TypeCheck Unexecuted instantiation: _typingmodule.c:PyObject_TypeCheck _weakref.c:PyObject_TypeCheck Line | Count | Source | 431 | 3.09k | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 3.09k | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 3.09k | } |
Unexecuted instantiation: _abc.c:PyObject_TypeCheck _functoolsmodule.c:PyObject_TypeCheck Line | Count | Source | 431 | 45 | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 45 | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 45 | } |
Unexecuted instantiation: _localemodule.c:PyObject_TypeCheck Unexecuted instantiation: _opcode.c:PyObject_TypeCheck Unexecuted instantiation: _operator.c:PyObject_TypeCheck Unexecuted instantiation: _stat.c:PyObject_TypeCheck Unexecuted instantiation: symtablemodule.c:PyObject_TypeCheck Unexecuted instantiation: pwdmodule.c:PyObject_TypeCheck Unexecuted instantiation: getpath.c:PyObject_TypeCheck Unexecuted instantiation: frozen.c:PyObject_TypeCheck Unexecuted instantiation: getbuildinfo.c:PyObject_TypeCheck Unexecuted instantiation: peg_api.c:PyObject_TypeCheck Unexecuted instantiation: file_tokenizer.c:PyObject_TypeCheck Unexecuted instantiation: helpers.c:PyObject_TypeCheck Unexecuted instantiation: myreadline.c:PyObject_TypeCheck abstract.c:PyObject_TypeCheck Line | Count | Source | 431 | 6.61M | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 6.61M | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 6.61M | } |
Unexecuted instantiation: boolobject.c:PyObject_TypeCheck Unexecuted instantiation: bytes_methods.c:PyObject_TypeCheck bytearrayobject.c:PyObject_TypeCheck Line | Count | Source | 431 | 8.78k | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 8.78k | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 8.78k | } |
Unexecuted instantiation: capsule.c:PyObject_TypeCheck Unexecuted instantiation: cellobject.c:PyObject_TypeCheck Unexecuted instantiation: classobject.c:PyObject_TypeCheck Unexecuted instantiation: codeobject.c:PyObject_TypeCheck Unexecuted instantiation: complexobject.c:PyObject_TypeCheck descrobject.c:PyObject_TypeCheck Line | Count | Source | 431 | 436M | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 436M | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 436M | } |
Unexecuted instantiation: enumobject.c:PyObject_TypeCheck Unexecuted instantiation: genobject.c:PyObject_TypeCheck Unexecuted instantiation: fileobject.c:PyObject_TypeCheck Unexecuted instantiation: frameobject.c:PyObject_TypeCheck Unexecuted instantiation: funcobject.c:PyObject_TypeCheck Unexecuted instantiation: interpolationobject.c:PyObject_TypeCheck Unexecuted instantiation: iterobject.c:PyObject_TypeCheck Unexecuted instantiation: odictobject.c:PyObject_TypeCheck methodobject.c:PyObject_TypeCheck Line | Count | Source | 431 | 3.82k | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 3.82k | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 3.82k | } |
Unexecuted instantiation: namespaceobject.c:PyObject_TypeCheck Unexecuted instantiation: _contextvars.c:PyObject_TypeCheck Unexecuted instantiation: Python-ast.c:PyObject_TypeCheck Unexecuted instantiation: Python-tokenize.c:PyObject_TypeCheck Unexecuted instantiation: asdl.c:PyObject_TypeCheck Unexecuted instantiation: assemble.c:PyObject_TypeCheck Unexecuted instantiation: ast.c:PyObject_TypeCheck Unexecuted instantiation: ast_preprocess.c:PyObject_TypeCheck Unexecuted instantiation: ast_unparse.c:PyObject_TypeCheck Unexecuted instantiation: critical_section.c:PyObject_TypeCheck Unexecuted instantiation: crossinterp.c:PyObject_TypeCheck Unexecuted instantiation: getcopyright.c:PyObject_TypeCheck Unexecuted instantiation: getplatform.c:PyObject_TypeCheck Unexecuted instantiation: getversion.c:PyObject_TypeCheck Unexecuted instantiation: optimizer.c:PyObject_TypeCheck Unexecuted instantiation: pathconfig.c:PyObject_TypeCheck Unexecuted instantiation: structmember.c:PyObject_TypeCheck pegen.c:PyObject_TypeCheck Line | Count | Source | 431 | 12.1k | static inline int PyObject_TypeCheck(PyObject *ob, PyTypeObject *type) { | 432 | 12.1k | return Py_IS_TYPE(ob, type) || PyType_IsSubtype(Py_TYPE(ob), type); | 433 | 12.1k | } |
Unexecuted instantiation: pegen_errors.c:PyObject_TypeCheck Unexecuted instantiation: parser.c:PyObject_TypeCheck Unexecuted instantiation: buffer.c:PyObject_TypeCheck Unexecuted instantiation: lexer.c:PyObject_TypeCheck Unexecuted instantiation: state.c:PyObject_TypeCheck Unexecuted instantiation: readline_tokenizer.c:PyObject_TypeCheck Unexecuted instantiation: string_tokenizer.c:PyObject_TypeCheck Unexecuted instantiation: utf8_tokenizer.c:PyObject_TypeCheck Unexecuted instantiation: getcompiler.c:PyObject_TypeCheck Unexecuted instantiation: mystrtoul.c:PyObject_TypeCheck Unexecuted instantiation: token.c:PyObject_TypeCheck Unexecuted instantiation: action_helpers.c:PyObject_TypeCheck Unexecuted instantiation: string_parser.c:PyObject_TypeCheck |
434 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
435 | 582M | # define PyObject_TypeCheck(ob, type) PyObject_TypeCheck(_PyObject_CAST(ob), (type)) |
436 | | #endif |
437 | | |
438 | | PyAPI_DATA(PyTypeObject) PyType_Type; /* built-in 'type' */ |
439 | | PyAPI_DATA(PyTypeObject) PyBaseObject_Type; /* built-in 'object' */ |
440 | | PyAPI_DATA(PyTypeObject) PySuper_Type; /* built-in 'super' */ |
441 | | |
442 | | PyAPI_FUNC(unsigned long) PyType_GetFlags(PyTypeObject*); |
443 | | |
444 | | PyAPI_FUNC(int) PyType_Ready(PyTypeObject *); |
445 | | PyAPI_FUNC(PyObject *) PyType_GenericAlloc(PyTypeObject *, Py_ssize_t); |
446 | | PyAPI_FUNC(PyObject *) PyType_GenericNew(PyTypeObject *, |
447 | | PyObject *, PyObject *); |
448 | | PyAPI_FUNC(unsigned int) PyType_ClearCache(void); |
449 | | PyAPI_FUNC(void) PyType_Modified(PyTypeObject *); |
450 | | |
451 | | /* Generic operations on objects */ |
452 | | PyAPI_FUNC(PyObject *) PyObject_Repr(PyObject *); |
453 | | PyAPI_FUNC(PyObject *) PyObject_Str(PyObject *); |
454 | | PyAPI_FUNC(PyObject *) PyObject_ASCII(PyObject *); |
455 | | PyAPI_FUNC(PyObject *) PyObject_Bytes(PyObject *); |
456 | | PyAPI_FUNC(PyObject *) PyObject_RichCompare(PyObject *, PyObject *, int); |
457 | | PyAPI_FUNC(int) PyObject_RichCompareBool(PyObject *, PyObject *, int); |
458 | | PyAPI_FUNC(PyObject *) PyObject_GetAttrString(PyObject *, const char *); |
459 | | PyAPI_FUNC(int) PyObject_SetAttrString(PyObject *, const char *, PyObject *); |
460 | | PyAPI_FUNC(int) PyObject_DelAttrString(PyObject *v, const char *name); |
461 | | PyAPI_FUNC(int) PyObject_HasAttrString(PyObject *, const char *); |
462 | | PyAPI_FUNC(PyObject *) PyObject_GetAttr(PyObject *, PyObject *); |
463 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030d0000 |
464 | | PyAPI_FUNC(int) PyObject_GetOptionalAttr(PyObject *, PyObject *, PyObject **); |
465 | | PyAPI_FUNC(int) PyObject_GetOptionalAttrString(PyObject *, const char *, PyObject **); |
466 | | #endif |
467 | | PyAPI_FUNC(int) PyObject_SetAttr(PyObject *, PyObject *, PyObject *); |
468 | | PyAPI_FUNC(int) PyObject_DelAttr(PyObject *v, PyObject *name); |
469 | | PyAPI_FUNC(int) PyObject_HasAttr(PyObject *, PyObject *); |
470 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030d0000 |
471 | | PyAPI_FUNC(int) PyObject_HasAttrWithError(PyObject *, PyObject *); |
472 | | PyAPI_FUNC(int) PyObject_HasAttrStringWithError(PyObject *, const char *); |
473 | | #endif |
474 | | PyAPI_FUNC(PyObject *) PyObject_SelfIter(PyObject *); |
475 | | PyAPI_FUNC(PyObject *) PyObject_GenericGetAttr(PyObject *, PyObject *); |
476 | | PyAPI_FUNC(int) PyObject_GenericSetAttr(PyObject *, PyObject *, PyObject *); |
477 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000 |
478 | | PyAPI_FUNC(int) PyObject_GenericSetDict(PyObject *, PyObject *, void *); |
479 | | #endif |
480 | | PyAPI_FUNC(Py_hash_t) PyObject_Hash(PyObject *); |
481 | | PyAPI_FUNC(Py_hash_t) PyObject_HashNotImplemented(PyObject *); |
482 | | PyAPI_FUNC(int) PyObject_IsTrue(PyObject *); |
483 | | PyAPI_FUNC(int) PyObject_Not(PyObject *); |
484 | | PyAPI_FUNC(int) PyCallable_Check(PyObject *); |
485 | | PyAPI_FUNC(void) PyObject_ClearWeakRefs(PyObject *); |
486 | | |
487 | | /* PyObject_Dir(obj) acts like Python builtins.dir(obj), returning a |
488 | | list of strings. PyObject_Dir(NULL) is like builtins.dir(), |
489 | | returning the names of the current locals. In this case, if there are |
490 | | no current locals, NULL is returned, and PyErr_Occurred() is false. |
491 | | */ |
492 | | PyAPI_FUNC(PyObject *) PyObject_Dir(PyObject *); |
493 | | |
494 | | /* Helpers for printing recursive container types */ |
495 | | PyAPI_FUNC(int) Py_ReprEnter(PyObject *); |
496 | | PyAPI_FUNC(void) Py_ReprLeave(PyObject *); |
497 | | |
498 | | /* Flag bits for printing: */ |
499 | 0 | #define Py_PRINT_RAW 1 /* No string quotes etc. */ |
500 | | |
501 | | /* |
502 | | Type flags (tp_flags) |
503 | | |
504 | | These flags are used to change expected features and behavior for a |
505 | | particular type. |
506 | | |
507 | | Arbitration of the flag bit positions will need to be coordinated among |
508 | | all extension writers who publicly release their extensions (this will |
509 | | be fewer than you might expect!). |
510 | | |
511 | | Most flags were removed as of Python 3.0 to make room for new flags. (Some |
512 | | flags are not for backwards compatibility but to indicate the presence of an |
513 | | optional feature; these flags remain of course.) |
514 | | |
515 | | Type definitions should use Py_TPFLAGS_DEFAULT for their tp_flags value. |
516 | | |
517 | | Code can use PyType_HasFeature(type_ob, flag_value) to test whether the |
518 | | given type object has a specified feature. |
519 | | */ |
520 | | |
521 | | #ifndef Py_LIMITED_API |
522 | | |
523 | | /* Track types initialized using _PyStaticType_InitBuiltin(). */ |
524 | 671M | #define _Py_TPFLAGS_STATIC_BUILTIN (1 << 1) |
525 | | |
526 | | /* The values array is placed inline directly after the rest of |
527 | | * the object. Implies Py_TPFLAGS_HAVE_GC. |
528 | | */ |
529 | 941M | #define Py_TPFLAGS_INLINE_VALUES (1 << 2) |
530 | | |
531 | | /* Placement of weakref pointers are managed by the VM, not by the type. |
532 | | * The VM will automatically set tp_weaklistoffset. |
533 | | */ |
534 | 773M | #define Py_TPFLAGS_MANAGED_WEAKREF (1 << 3) |
535 | | |
536 | | /* Placement of dict (and values) pointers are managed by the VM, not by the type. |
537 | | * The VM will automatically set tp_dictoffset. Implies Py_TPFLAGS_HAVE_GC. |
538 | | */ |
539 | 1.14G | #define Py_TPFLAGS_MANAGED_DICT (1 << 4) |
540 | | |
541 | | /* Type has dictionary or weakref pointers that are managed by VM and has |
542 | | * to allocate space to store these. |
543 | | */ |
544 | 772M | #define Py_TPFLAGS_PREHEADER (Py_TPFLAGS_MANAGED_WEAKREF | Py_TPFLAGS_MANAGED_DICT) |
545 | | |
546 | | /* Set if instances of the type object are treated as sequences for pattern matching */ |
547 | 2.69M | #define Py_TPFLAGS_SEQUENCE (1 << 5) |
548 | | /* Set if instances of the type object are treated as mappings for pattern matching */ |
549 | 2.69M | #define Py_TPFLAGS_MAPPING (1 << 6) |
550 | | #endif |
551 | | |
552 | | /* Disallow creating instances of the type: set tp_new to NULL and don't create |
553 | | * the "__new__" key in the type dictionary. */ |
554 | 276k | #define Py_TPFLAGS_DISALLOW_INSTANTIATION (1UL << 7) |
555 | | |
556 | | /* Set if the type object is immutable: type attributes cannot be set nor deleted */ |
557 | 746k | #define Py_TPFLAGS_IMMUTABLETYPE (1UL << 8) |
558 | | |
559 | | /* Set if the type object is dynamically allocated */ |
560 | 320M | #define Py_TPFLAGS_HEAPTYPE (1UL << 9) |
561 | | |
562 | | /* Set if the type allows subclassing */ |
563 | 1.08M | #define Py_TPFLAGS_BASETYPE (1UL << 10) |
564 | | |
565 | | /* Set if the type implements the vectorcall protocol (PEP 590) */ |
566 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030C0000 |
567 | 532M | #define Py_TPFLAGS_HAVE_VECTORCALL (1UL << 11) |
568 | | #ifndef Py_LIMITED_API |
569 | | // Backwards compatibility alias for API that was provisional in Python 3.8 |
570 | | #define _Py_TPFLAGS_HAVE_VECTORCALL Py_TPFLAGS_HAVE_VECTORCALL |
571 | | #endif |
572 | | #endif |
573 | | |
574 | | /* Set if the type is 'ready' -- fully initialized */ |
575 | 33.7M | #define Py_TPFLAGS_READY (1UL << 12) |
576 | | |
577 | | /* Set while the type is being 'readied', to prevent recursive ready calls */ |
578 | 545k | #define Py_TPFLAGS_READYING (1UL << 13) |
579 | | |
580 | | /* Objects support garbage collection (see objimpl.h) */ |
581 | 4.71G | #define Py_TPFLAGS_HAVE_GC (1UL << 14) |
582 | | |
583 | | /* These two bits are preserved for Stackless Python, next after this is 17 */ |
584 | | #ifdef STACKLESS |
585 | | #define Py_TPFLAGS_HAVE_STACKLESS_EXTENSION (3UL << 15) |
586 | | #else |
587 | 271k | #define Py_TPFLAGS_HAVE_STACKLESS_EXTENSION 0 |
588 | | #endif |
589 | | |
590 | | /* Objects behave like an unbound method */ |
591 | 101M | #define Py_TPFLAGS_METHOD_DESCRIPTOR (1UL << 17) |
592 | | |
593 | | /* Unused. Legacy flag */ |
594 | | #define Py_TPFLAGS_VALID_VERSION_TAG (1UL << 19) |
595 | | |
596 | | /* Type is abstract and cannot be instantiated */ |
597 | 33.7M | #define Py_TPFLAGS_IS_ABSTRACT (1UL << 20) |
598 | | |
599 | | // This undocumented flag gives certain built-ins their unique pattern-matching |
600 | | // behavior, which allows a single positional subpattern to match against the |
601 | | // subject itself (rather than a mapped attribute on it): |
602 | 541k | #define _Py_TPFLAGS_MATCH_SELF (1UL << 22) |
603 | | |
604 | | /* Items (ob_size*tp_itemsize) are found at the end of an instance's memory */ |
605 | 615k | #define Py_TPFLAGS_ITEMS_AT_END (1UL << 23) |
606 | | |
607 | | /* These flags are used to determine if a type is a subclass. */ |
608 | 143 | #define Py_TPFLAGS_LONG_SUBCLASS (1UL << 24) |
609 | 116 | #define Py_TPFLAGS_LIST_SUBCLASS (1UL << 25) |
610 | 430 | #define Py_TPFLAGS_TUPLE_SUBCLASS (1UL << 26) |
611 | 0 | #define Py_TPFLAGS_BYTES_SUBCLASS (1UL << 27) |
612 | 7.69M | #define Py_TPFLAGS_UNICODE_SUBCLASS (1UL << 28) |
613 | 78 | #define Py_TPFLAGS_DICT_SUBCLASS (1UL << 29) |
614 | 1.57k | #define Py_TPFLAGS_BASE_EXC_SUBCLASS (1UL << 30) |
615 | 44 | #define Py_TPFLAGS_TYPE_SUBCLASS (1UL << 31) |
616 | | |
617 | 271k | #define Py_TPFLAGS_DEFAULT ( \ |
618 | 271k | Py_TPFLAGS_HAVE_STACKLESS_EXTENSION | \ |
619 | 271k | 0) |
620 | | |
621 | | /* NOTE: Some of the following flags reuse lower bits (removed as part of the |
622 | | * Python 3.0 transition). */ |
623 | | |
624 | | /* The following flags are kept for compatibility; in previous |
625 | | * versions they indicated presence of newer tp_* fields on the |
626 | | * type struct. |
627 | | * Starting with 3.8, binary compatibility of C extensions across |
628 | | * feature releases of Python is not supported anymore (except when |
629 | | * using the stable ABI, in which all classes are created dynamically, |
630 | | * using the interpreter's memory layout.) |
631 | | * Note that older extensions using the stable ABI set these flags, |
632 | | * so the bits must not be repurposed. |
633 | | */ |
634 | | #define Py_TPFLAGS_HAVE_FINALIZE (1UL << 0) |
635 | | #define Py_TPFLAGS_HAVE_VERSION_TAG (1UL << 18) |
636 | | |
637 | | // Flag values for ob_flags (16 bits available, if SIZEOF_VOID_P > 4). |
638 | 243M | #define _Py_IMMORTAL_FLAGS (1 << 0) |
639 | | #define _Py_LEGACY_ABI_CHECK_FLAG (1 << 1) /* see PyModuleDef_Init() */ |
640 | 243M | #define _Py_STATICALLY_ALLOCATED_FLAG (1 << 2) |
641 | | #if defined(Py_GIL_DISABLED) && defined(Py_DEBUG) |
642 | | #define _Py_TYPE_REVEALED_FLAG (1 << 3) |
643 | | #endif |
644 | | |
645 | | #define Py_CONSTANT_NONE 0 |
646 | | #define Py_CONSTANT_FALSE 1 |
647 | | #define Py_CONSTANT_TRUE 2 |
648 | | #define Py_CONSTANT_ELLIPSIS 3 |
649 | | #define Py_CONSTANT_NOT_IMPLEMENTED 4 |
650 | 16 | #define Py_CONSTANT_ZERO 5 |
651 | 16 | #define Py_CONSTANT_ONE 6 |
652 | 242k | #define Py_CONSTANT_EMPTY_STR 7 |
653 | 4.20M | #define Py_CONSTANT_EMPTY_BYTES 8 |
654 | 16 | #define Py_CONSTANT_EMPTY_TUPLE 9 |
655 | | |
656 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030d0000 |
657 | | PyAPI_FUNC(PyObject*) Py_GetConstant(unsigned int constant_id); |
658 | | PyAPI_FUNC(PyObject*) Py_GetConstantBorrowed(unsigned int constant_id); |
659 | | #endif |
660 | | |
661 | | |
662 | | /* |
663 | | _Py_NoneStruct is an object of undefined type which can be used in contexts |
664 | | where NULL (nil) is not suitable (since NULL often means 'error'). |
665 | | */ |
666 | | PyAPI_DATA(PyObject) _Py_NoneStruct; /* Don't use this directly */ |
667 | | |
668 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030D0000 |
669 | | # define Py_None Py_GetConstantBorrowed(Py_CONSTANT_NONE) |
670 | | #else |
671 | 1.97G | # define Py_None (&_Py_NoneStruct) |
672 | | #endif |
673 | | |
674 | | // Test if an object is the None singleton, the same as "x is None" in Python. |
675 | | PyAPI_FUNC(int) Py_IsNone(PyObject *x); |
676 | 179M | #define Py_IsNone(x) Py_Is((x), Py_None) |
677 | | |
678 | | /* Macro for returning Py_None from a function. |
679 | | * Only treat Py_None as immortal in the limited C API 3.12 and newer. */ |
680 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 < 0x030c0000 |
681 | | # define Py_RETURN_NONE return Py_NewRef(Py_None) |
682 | | #else |
683 | 105M | # define Py_RETURN_NONE return Py_None |
684 | | #endif |
685 | | |
686 | | /* |
687 | | Py_NotImplemented is a singleton used to signal that an operation is |
688 | | not implemented for a given type combination. |
689 | | */ |
690 | | PyAPI_DATA(PyObject) _Py_NotImplementedStruct; /* Don't use this directly */ |
691 | | |
692 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 >= 0x030D0000 |
693 | | # define Py_NotImplemented Py_GetConstantBorrowed(Py_CONSTANT_NOT_IMPLEMENTED) |
694 | | #else |
695 | 381M | # define Py_NotImplemented (&_Py_NotImplementedStruct) |
696 | | #endif |
697 | | |
698 | | /* Macro for returning Py_NotImplemented from a function. Only treat |
699 | | * Py_NotImplemented as immortal in the limited C API 3.12 and newer. */ |
700 | | #if defined(Py_LIMITED_API) && Py_LIMITED_API+0 < 0x030c0000 |
701 | | # define Py_RETURN_NOTIMPLEMENTED return Py_NewRef(Py_NotImplemented) |
702 | | #else |
703 | 22.5M | # define Py_RETURN_NOTIMPLEMENTED return Py_NotImplemented |
704 | | #endif |
705 | | |
706 | | /* Rich comparison opcodes */ |
707 | 67.9M | #define Py_LT 0 |
708 | 539k | #define Py_LE 1 |
709 | 494M | #define Py_EQ 2 |
710 | 39.6M | #define Py_NE 3 |
711 | 2.07M | #define Py_GT 4 |
712 | 1.91k | #define Py_GE 5 |
713 | | |
714 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A0000 |
715 | | /* Result of calling PyIter_Send */ |
716 | | typedef enum { |
717 | | PYGEN_RETURN = 0, |
718 | | PYGEN_ERROR = -1, |
719 | | PYGEN_NEXT = 1 |
720 | | } PySendResult; |
721 | | #endif |
722 | | |
723 | | /* |
724 | | * Macro for implementing rich comparisons |
725 | | * |
726 | | * Needs to be a macro because any C-comparable type can be used. |
727 | | */ |
728 | | #define Py_RETURN_RICHCOMPARE(val1, val2, op) \ |
729 | 229M | do { \ |
730 | 229M | switch (op) { \ |
731 | 194M | case Py_EQ: if ((val1) == (val2)) Py_RETURN_TRUE; Py_RETURN_FALSE; \ |
732 | 194M | case Py_NE: if ((val1) != (val2)) Py_RETURN_TRUE; Py_RETURN_FALSE; \ |
733 | 33.2M | case Py_LT: if ((val1) < (val2)) Py_RETURN_TRUE; Py_RETURN_FALSE; \ |
734 | 33.2M | case Py_GT: if ((val1) > (val2)) Py_RETURN_TRUE; Py_RETURN_FALSE; \ |
735 | 1.21M | case Py_LE: if ((val1) <= (val2)) Py_RETURN_TRUE; Py_RETURN_FALSE; \ |
736 | 538k | case Py_GE: if ((val1) >= (val2)) Py_RETURN_TRUE; Py_RETURN_FALSE; \ |
737 | 92 | default: \ |
738 | 0 | Py_UNREACHABLE(); \ |
739 | 229M | } \ |
740 | 229M | } while (0) |
741 | | |
742 | | |
743 | | /* |
744 | | More conventions |
745 | | ================ |
746 | | |
747 | | Argument Checking |
748 | | ----------------- |
749 | | |
750 | | Functions that take objects as arguments normally don't check for nil |
751 | | arguments, but they do check the type of the argument, and return an |
752 | | error if the function doesn't apply to the type. |
753 | | |
754 | | Failure Modes |
755 | | ------------- |
756 | | |
757 | | Functions may fail for a variety of reasons, including running out of |
758 | | memory. This is communicated to the caller in two ways: an error string |
759 | | is set (see errors.h), and the function result differs: functions that |
760 | | normally return a pointer return NULL for failure, functions returning |
761 | | an integer return -1 (which could be a legal return value too!), and |
762 | | other functions return 0 for success and -1 for failure. |
763 | | Callers should always check for errors before using the result. If |
764 | | an error was set, the caller must either explicitly clear it, or pass |
765 | | the error on to its caller. |
766 | | |
767 | | Reference Counts |
768 | | ---------------- |
769 | | |
770 | | It takes a while to get used to the proper usage of reference counts. |
771 | | |
772 | | Functions that create an object set the reference count to 1; such new |
773 | | objects must be stored somewhere or destroyed again with Py_DECREF(). |
774 | | Some functions that 'store' objects, such as PyTuple_SetItem() and |
775 | | PyList_SetItem(), |
776 | | don't increment the reference count of the object, since the most |
777 | | frequent use is to store a fresh object. Functions that 'retrieve' |
778 | | objects, such as PyTuple_GetItem() and PyDict_GetItemString(), also |
779 | | don't increment |
780 | | the reference count, since most frequently the object is only looked at |
781 | | quickly. Thus, to retrieve an object and store it again, the caller |
782 | | must call Py_INCREF() explicitly. |
783 | | |
784 | | NOTE: functions that 'consume' a reference count, like |
785 | | PyList_SetItem(), consume the reference even if the object wasn't |
786 | | successfully stored, to simplify error handling. |
787 | | |
788 | | It seems attractive to make other functions that take an object as |
789 | | argument consume a reference count; however, this may quickly get |
790 | | confusing (even the current practice is already confusing). Consider |
791 | | it carefully, it may save lots of calls to Py_INCREF() and Py_DECREF() at |
792 | | times. |
793 | | */ |
794 | | |
795 | | #ifndef Py_LIMITED_API |
796 | | # define Py_CPYTHON_OBJECT_H |
797 | | # include "cpython/object.h" |
798 | | # undef Py_CPYTHON_OBJECT_H |
799 | | #endif |
800 | | |
801 | | |
802 | | static inline int |
803 | | PyType_HasFeature(PyTypeObject *type, unsigned long feature) |
804 | 5.99G | { |
805 | 5.99G | unsigned long flags; |
806 | | #ifdef Py_LIMITED_API |
807 | | // PyTypeObject is opaque in the limited C API |
808 | | flags = PyType_GetFlags(type); |
809 | | #else |
810 | | flags = type->tp_flags; |
811 | | #endif |
812 | 5.99G | return ((flags & feature) != 0); |
813 | 5.99G | } bytesobject.c:PyType_HasFeature Line | Count | Source | 804 | 13.7M | { | 805 | 13.7M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 13.7M | flags = type->tp_flags; | 811 | 13.7M | #endif | 812 | 13.7M | return ((flags & feature) != 0); | 813 | 13.7M | } |
Line | Count | Source | 804 | 424M | { | 805 | 424M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 424M | flags = type->tp_flags; | 811 | 424M | #endif | 812 | 424M | return ((flags & feature) != 0); | 813 | 424M | } |
exceptions.c:PyType_HasFeature Line | Count | Source | 804 | 676k | { | 805 | 676k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 676k | flags = type->tp_flags; | 811 | 676k | #endif | 812 | 676k | return ((flags & feature) != 0); | 813 | 676k | } |
genericaliasobject.c:PyType_HasFeature Line | Count | Source | 804 | 862 | { | 805 | 862 | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 862 | flags = type->tp_flags; | 811 | 862 | #endif | 812 | 862 | return ((flags & feature) != 0); | 813 | 862 | } |
floatobject.c:PyType_HasFeature Line | Count | Source | 804 | 1.32M | { | 805 | 1.32M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 1.32M | flags = type->tp_flags; | 811 | 1.32M | #endif | 812 | 1.32M | return ((flags & feature) != 0); | 813 | 1.32M | } |
listobject.c:PyType_HasFeature Line | Count | Source | 804 | 254M | { | 805 | 254M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 254M | flags = type->tp_flags; | 811 | 254M | #endif | 812 | 254M | return ((flags & feature) != 0); | 813 | 254M | } |
longobject.c:PyType_HasFeature Line | Count | Source | 804 | 914M | { | 805 | 914M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 914M | flags = type->tp_flags; | 811 | 914M | #endif | 812 | 914M | return ((flags & feature) != 0); | 813 | 914M | } |
dictobject.c:PyType_HasFeature Line | Count | Source | 804 | 323M | { | 805 | 323M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 323M | flags = type->tp_flags; | 811 | 323M | #endif | 812 | 323M | return ((flags & feature) != 0); | 813 | 323M | } |
memoryobject.c:PyType_HasFeature Line | Count | Source | 804 | 4 | { | 805 | 4 | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 4 | flags = type->tp_flags; | 811 | 4 | #endif | 812 | 4 | return ((flags & feature) != 0); | 813 | 4 | } |
moduleobject.c:PyType_HasFeature Line | Count | Source | 804 | 13.3k | { | 805 | 13.3k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 13.3k | flags = type->tp_flags; | 811 | 13.3k | #endif | 812 | 13.3k | return ((flags & feature) != 0); | 813 | 13.3k | } |
object.c:PyType_HasFeature Line | Count | Source | 804 | 774M | { | 805 | 774M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 774M | flags = type->tp_flags; | 811 | 774M | #endif | 812 | 774M | return ((flags & feature) != 0); | 813 | 774M | } |
Unexecuted instantiation: obmalloc.c:PyType_HasFeature Unexecuted instantiation: picklebufobject.c:PyType_HasFeature Unexecuted instantiation: rangeobject.c:PyType_HasFeature Unexecuted instantiation: setobject.c:PyType_HasFeature Unexecuted instantiation: sliceobject.c:PyType_HasFeature Unexecuted instantiation: structseq.c:PyType_HasFeature Unexecuted instantiation: templateobject.c:PyType_HasFeature tupleobject.c:PyType_HasFeature Line | Count | Source | 804 | 80.1M | { | 805 | 80.1M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 80.1M | flags = type->tp_flags; | 811 | 80.1M | #endif | 812 | 80.1M | return ((flags & feature) != 0); | 813 | 80.1M | } |
typeobject.c:PyType_HasFeature Line | Count | Source | 804 | 264M | { | 805 | 264M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 264M | flags = type->tp_flags; | 811 | 264M | #endif | 812 | 264M | return ((flags & feature) != 0); | 813 | 264M | } |
Unexecuted instantiation: typevarobject.c:PyType_HasFeature unicode_format.c:PyType_HasFeature Line | Count | Source | 804 | 92.6M | { | 805 | 92.6M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 92.6M | flags = type->tp_flags; | 811 | 92.6M | #endif | 812 | 92.6M | return ((flags & feature) != 0); | 813 | 92.6M | } |
Unexecuted instantiation: unicode_formatter.c:PyType_HasFeature unicode_writer.c:PyType_HasFeature Line | Count | Source | 804 | 589k | { | 805 | 589k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 589k | flags = type->tp_flags; | 811 | 589k | #endif | 812 | 589k | return ((flags & feature) != 0); | 813 | 589k | } |
Unexecuted instantiation: unicodectype.c:PyType_HasFeature unicodeobject.c:PyType_HasFeature Line | Count | Source | 804 | 1.54G | { | 805 | 1.54G | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 1.54G | flags = type->tp_flags; | 811 | 1.54G | #endif | 812 | 1.54G | return ((flags & feature) != 0); | 813 | 1.54G | } |
unionobject.c:PyType_HasFeature Line | Count | Source | 804 | 475 | { | 805 | 475 | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 475 | flags = type->tp_flags; | 811 | 475 | #endif | 812 | 475 | return ((flags & feature) != 0); | 813 | 475 | } |
weakrefobject.c:PyType_HasFeature Line | Count | Source | 804 | 38.5M | { | 805 | 38.5M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 38.5M | flags = type->tp_flags; | 811 | 38.5M | #endif | 812 | 38.5M | return ((flags & feature) != 0); | 813 | 38.5M | } |
_warnings.c:PyType_HasFeature Line | Count | Source | 804 | 43.0k | { | 805 | 43.0k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 43.0k | flags = type->tp_flags; | 811 | 43.0k | #endif | 812 | 43.0k | return ((flags & feature) != 0); | 813 | 43.0k | } |
bltinmodule.c:PyType_HasFeature Line | Count | Source | 804 | 61.9M | { | 805 | 61.9M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 61.9M | flags = type->tp_flags; | 811 | 61.9M | #endif | 812 | 61.9M | return ((flags & feature) != 0); | 813 | 61.9M | } |
ceval.c:PyType_HasFeature Line | Count | Source | 804 | 230M | { | 805 | 230M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 230M | flags = type->tp_flags; | 811 | 230M | #endif | 812 | 230M | return ((flags & feature) != 0); | 813 | 230M | } |
codecs.c:PyType_HasFeature Line | Count | Source | 804 | 1.02M | { | 805 | 1.02M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 1.02M | flags = type->tp_flags; | 811 | 1.02M | #endif | 812 | 1.02M | return ((flags & feature) != 0); | 813 | 1.02M | } |
codegen.c:PyType_HasFeature Line | Count | Source | 804 | 1.44k | { | 805 | 1.44k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 1.44k | flags = type->tp_flags; | 811 | 1.44k | #endif | 812 | 1.44k | return ((flags & feature) != 0); | 813 | 1.44k | } |
Unexecuted instantiation: compile.c:PyType_HasFeature context.c:PyType_HasFeature Line | Count | Source | 804 | 24 | { | 805 | 24 | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 24 | flags = type->tp_flags; | 811 | 24 | #endif | 812 | 24 | return ((flags & feature) != 0); | 813 | 24 | } |
errors.c:PyType_HasFeature Line | Count | Source | 804 | 331M | { | 805 | 331M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 331M | flags = type->tp_flags; | 811 | 331M | #endif | 812 | 331M | return ((flags & feature) != 0); | 813 | 331M | } |
flowgraph.c:PyType_HasFeature Line | Count | Source | 804 | 216 | { | 805 | 216 | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 216 | flags = type->tp_flags; | 811 | 216 | #endif | 812 | 216 | return ((flags & feature) != 0); | 813 | 216 | } |
Unexecuted instantiation: frame.c:PyType_HasFeature Unexecuted instantiation: future.c:PyType_HasFeature Unexecuted instantiation: gc.c:PyType_HasFeature Unexecuted instantiation: gc_gil.c:PyType_HasFeature getargs.c:PyType_HasFeature Line | Count | Source | 804 | 3.18M | { | 805 | 3.18M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 3.18M | flags = type->tp_flags; | 811 | 3.18M | #endif | 812 | 3.18M | return ((flags & feature) != 0); | 813 | 3.18M | } |
Unexecuted instantiation: ceval_gil.c:PyType_HasFeature Unexecuted instantiation: hamt.c:PyType_HasFeature Unexecuted instantiation: hashtable.c:PyType_HasFeature import.c:PyType_HasFeature Line | Count | Source | 804 | 36.0k | { | 805 | 36.0k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 36.0k | flags = type->tp_flags; | 811 | 36.0k | #endif | 812 | 36.0k | return ((flags & feature) != 0); | 813 | 36.0k | } |
importdl.c:PyType_HasFeature Line | Count | Source | 804 | 158 | { | 805 | 158 | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 158 | flags = type->tp_flags; | 811 | 158 | #endif | 812 | 158 | return ((flags & feature) != 0); | 813 | 158 | } |
initconfig.c:PyType_HasFeature Line | Count | Source | 804 | 320 | { | 805 | 320 | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 320 | flags = type->tp_flags; | 811 | 320 | #endif | 812 | 320 | return ((flags & feature) != 0); | 813 | 320 | } |
Unexecuted instantiation: instrumentation.c:PyType_HasFeature Unexecuted instantiation: instruction_sequence.c:PyType_HasFeature intrinsics.c:PyType_HasFeature Line | Count | Source | 804 | 14.9k | { | 805 | 14.9k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 14.9k | flags = type->tp_flags; | 811 | 14.9k | #endif | 812 | 14.9k | return ((flags & feature) != 0); | 813 | 14.9k | } |
Unexecuted instantiation: legacy_tracing.c:PyType_HasFeature Unexecuted instantiation: lock.c:PyType_HasFeature Unexecuted instantiation: marshal.c:PyType_HasFeature Unexecuted instantiation: modsupport.c:PyType_HasFeature Unexecuted instantiation: mysnprintf.c:PyType_HasFeature Unexecuted instantiation: parking_lot.c:PyType_HasFeature Unexecuted instantiation: preconfig.c:PyType_HasFeature Unexecuted instantiation: pyarena.c:PyType_HasFeature Unexecuted instantiation: pyctype.c:PyType_HasFeature Unexecuted instantiation: pyhash.c:PyType_HasFeature pylifecycle.c:PyType_HasFeature Line | Count | Source | 804 | 16 | { | 805 | 16 | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 16 | flags = type->tp_flags; | 811 | 16 | #endif | 812 | 16 | return ((flags & feature) != 0); | 813 | 16 | } |
Unexecuted instantiation: pymath.c:PyType_HasFeature Unexecuted instantiation: pystate.c:PyType_HasFeature pythonrun.c:PyType_HasFeature Line | Count | Source | 804 | 42.4k | { | 805 | 42.4k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 42.4k | flags = type->tp_flags; | 811 | 42.4k | #endif | 812 | 42.4k | return ((flags & feature) != 0); | 813 | 42.4k | } |
Unexecuted instantiation: pytime.c:PyType_HasFeature Unexecuted instantiation: qsbr.c:PyType_HasFeature Unexecuted instantiation: bootstrap_hash.c:PyType_HasFeature specialize.c:PyType_HasFeature Line | Count | Source | 804 | 1.32M | { | 805 | 1.32M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 1.32M | flags = type->tp_flags; | 811 | 1.32M | #endif | 812 | 1.32M | return ((flags & feature) != 0); | 813 | 1.32M | } |
symtable.c:PyType_HasFeature Line | Count | Source | 804 | 125k | { | 805 | 125k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 125k | flags = type->tp_flags; | 811 | 125k | #endif | 812 | 125k | return ((flags & feature) != 0); | 813 | 125k | } |
sysmodule.c:PyType_HasFeature Line | Count | Source | 804 | 3.57k | { | 805 | 3.57k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 3.57k | flags = type->tp_flags; | 811 | 3.57k | #endif | 812 | 3.57k | return ((flags & feature) != 0); | 813 | 3.57k | } |
Unexecuted instantiation: thread.c:PyType_HasFeature Unexecuted instantiation: traceback.c:PyType_HasFeature Unexecuted instantiation: tracemalloc.c:PyType_HasFeature Unexecuted instantiation: getopt.c:PyType_HasFeature Unexecuted instantiation: pystrcmp.c:PyType_HasFeature Unexecuted instantiation: pystrtod.c:PyType_HasFeature Unexecuted instantiation: pystrhex.c:PyType_HasFeature Unexecuted instantiation: dtoa.c:PyType_HasFeature Unexecuted instantiation: fileutils.c:PyType_HasFeature Unexecuted instantiation: suggestions.c:PyType_HasFeature Unexecuted instantiation: perf_trampoline.c:PyType_HasFeature Unexecuted instantiation: perf_jit_trampoline.c:PyType_HasFeature Unexecuted instantiation: remote_debugging.c:PyType_HasFeature Unexecuted instantiation: dynload_shlib.c:PyType_HasFeature Unexecuted instantiation: config.c:PyType_HasFeature Unexecuted instantiation: gcmodule.c:PyType_HasFeature Unexecuted instantiation: _asynciomodule.c:PyType_HasFeature Unexecuted instantiation: atexitmodule.c:PyType_HasFeature Unexecuted instantiation: faulthandler.c:PyType_HasFeature posixmodule.c:PyType_HasFeature Line | Count | Source | 804 | 49.0k | { | 805 | 49.0k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 49.0k | flags = type->tp_flags; | 811 | 49.0k | #endif | 812 | 49.0k | return ((flags & feature) != 0); | 813 | 49.0k | } |
Unexecuted instantiation: signalmodule.c:PyType_HasFeature Unexecuted instantiation: _tracemalloc.c:PyType_HasFeature Unexecuted instantiation: _suggestions.c:PyType_HasFeature Unexecuted instantiation: _datetimemodule.c:PyType_HasFeature _codecsmodule.c:PyType_HasFeature Line | Count | Source | 804 | 725k | { | 805 | 725k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 725k | flags = type->tp_flags; | 811 | 725k | #endif | 812 | 725k | return ((flags & feature) != 0); | 813 | 725k | } |
Unexecuted instantiation: _collectionsmodule.c:PyType_HasFeature Unexecuted instantiation: errnomodule.c:PyType_HasFeature _iomodule.c:PyType_HasFeature Line | Count | Source | 804 | 3.13k | { | 805 | 3.13k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 3.13k | flags = type->tp_flags; | 811 | 3.13k | #endif | 812 | 3.13k | return ((flags & feature) != 0); | 813 | 3.13k | } |
Unexecuted instantiation: iobase.c:PyType_HasFeature fileio.c:PyType_HasFeature Line | Count | Source | 804 | 1.31k | { | 805 | 1.31k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 1.31k | flags = type->tp_flags; | 811 | 1.31k | #endif | 812 | 1.31k | return ((flags & feature) != 0); | 813 | 1.31k | } |
Unexecuted instantiation: bytesio.c:PyType_HasFeature bufferedio.c:PyType_HasFeature Line | Count | Source | 804 | 2.05k | { | 805 | 2.05k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 2.05k | flags = type->tp_flags; | 811 | 2.05k | #endif | 812 | 2.05k | return ((flags & feature) != 0); | 813 | 2.05k | } |
textio.c:PyType_HasFeature Line | Count | Source | 804 | 65.7k | { | 805 | 65.7k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 65.7k | flags = type->tp_flags; | 811 | 65.7k | #endif | 812 | 65.7k | return ((flags & feature) != 0); | 813 | 65.7k | } |
stringio.c:PyType_HasFeature Line | Count | Source | 804 | 97.4k | { | 805 | 97.4k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 97.4k | flags = type->tp_flags; | 811 | 97.4k | #endif | 812 | 97.4k | return ((flags & feature) != 0); | 813 | 97.4k | } |
Unexecuted instantiation: itertoolsmodule.c:PyType_HasFeature Line | Count | Source | 804 | 114M | { | 805 | 114M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 114M | flags = type->tp_flags; | 811 | 114M | #endif | 812 | 114M | return ((flags & feature) != 0); | 813 | 114M | } |
Unexecuted instantiation: _sysconfig.c:PyType_HasFeature Unexecuted instantiation: _threadmodule.c:PyType_HasFeature Unexecuted instantiation: timemodule.c:PyType_HasFeature Unexecuted instantiation: _typesmodule.c:PyType_HasFeature Unexecuted instantiation: _typingmodule.c:PyType_HasFeature _weakref.c:PyType_HasFeature Line | Count | Source | 804 | 3.09k | { | 805 | 3.09k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 3.09k | flags = type->tp_flags; | 811 | 3.09k | #endif | 812 | 3.09k | return ((flags & feature) != 0); | 813 | 3.09k | } |
Line | Count | Source | 804 | 28.9k | { | 805 | 28.9k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 28.9k | flags = type->tp_flags; | 811 | 28.9k | #endif | 812 | 28.9k | return ((flags & feature) != 0); | 813 | 28.9k | } |
_functoolsmodule.c:PyType_HasFeature Line | Count | Source | 804 | 40.4k | { | 805 | 40.4k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 40.4k | flags = type->tp_flags; | 811 | 40.4k | #endif | 812 | 40.4k | return ((flags & feature) != 0); | 813 | 40.4k | } |
Unexecuted instantiation: _localemodule.c:PyType_HasFeature Unexecuted instantiation: _opcode.c:PyType_HasFeature Unexecuted instantiation: _operator.c:PyType_HasFeature _stat.c:PyType_HasFeature Line | Count | Source | 804 | 16 | { | 805 | 16 | unsigned long flags; | 806 | 16 | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | 16 | flags = PyType_GetFlags(type); | 809 | | #else | 810 | | flags = type->tp_flags; | 811 | | #endif | 812 | 16 | return ((flags & feature) != 0); | 813 | 16 | } |
Unexecuted instantiation: symtablemodule.c:PyType_HasFeature Unexecuted instantiation: pwdmodule.c:PyType_HasFeature getpath.c:PyType_HasFeature Line | Count | Source | 804 | 432 | { | 805 | 432 | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 432 | flags = type->tp_flags; | 811 | 432 | #endif | 812 | 432 | return ((flags & feature) != 0); | 813 | 432 | } |
Unexecuted instantiation: frozen.c:PyType_HasFeature Unexecuted instantiation: getbuildinfo.c:PyType_HasFeature Unexecuted instantiation: peg_api.c:PyType_HasFeature Unexecuted instantiation: file_tokenizer.c:PyType_HasFeature Unexecuted instantiation: helpers.c:PyType_HasFeature Unexecuted instantiation: myreadline.c:PyType_HasFeature abstract.c:PyType_HasFeature Line | Count | Source | 804 | 442M | { | 805 | 442M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 442M | flags = type->tp_flags; | 811 | 442M | #endif | 812 | 442M | return ((flags & feature) != 0); | 813 | 442M | } |
Unexecuted instantiation: boolobject.c:PyType_HasFeature bytes_methods.c:PyType_HasFeature Line | Count | Source | 804 | 644k | { | 805 | 644k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 644k | flags = type->tp_flags; | 811 | 644k | #endif | 812 | 644k | return ((flags & feature) != 0); | 813 | 644k | } |
bytearrayobject.c:PyType_HasFeature Line | Count | Source | 804 | 2.00M | { | 805 | 2.00M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 2.00M | flags = type->tp_flags; | 811 | 2.00M | #endif | 812 | 2.00M | return ((flags & feature) != 0); | 813 | 2.00M | } |
Unexecuted instantiation: capsule.c:PyType_HasFeature Unexecuted instantiation: cellobject.c:PyType_HasFeature classobject.c:PyType_HasFeature Line | Count | Source | 804 | 22.3M | { | 805 | 22.3M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 22.3M | flags = type->tp_flags; | 811 | 22.3M | #endif | 812 | 22.3M | return ((flags & feature) != 0); | 813 | 22.3M | } |
codeobject.c:PyType_HasFeature Line | Count | Source | 804 | 332k | { | 805 | 332k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 332k | flags = type->tp_flags; | 811 | 332k | #endif | 812 | 332k | return ((flags & feature) != 0); | 813 | 332k | } |
Unexecuted instantiation: complexobject.c:PyType_HasFeature descrobject.c:PyType_HasFeature Line | Count | Source | 804 | 7.35M | { | 805 | 7.35M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 7.35M | flags = type->tp_flags; | 811 | 7.35M | #endif | 812 | 7.35M | return ((flags & feature) != 0); | 813 | 7.35M | } |
enumobject.c:PyType_HasFeature Line | Count | Source | 804 | 38.5M | { | 805 | 38.5M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 38.5M | flags = type->tp_flags; | 811 | 38.5M | #endif | 812 | 38.5M | return ((flags & feature) != 0); | 813 | 38.5M | } |
genobject.c:PyType_HasFeature Line | Count | Source | 804 | 1.96k | { | 805 | 1.96k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 1.96k | flags = type->tp_flags; | 811 | 1.96k | #endif | 812 | 1.96k | return ((flags & feature) != 0); | 813 | 1.96k | } |
fileobject.c:PyType_HasFeature Line | Count | Source | 804 | 1.02k | { | 805 | 1.02k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 1.02k | flags = type->tp_flags; | 811 | 1.02k | #endif | 812 | 1.02k | return ((flags & feature) != 0); | 813 | 1.02k | } |
Unexecuted instantiation: frameobject.c:PyType_HasFeature funcobject.c:PyType_HasFeature Line | Count | Source | 804 | 28.8k | { | 805 | 28.8k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 28.8k | flags = type->tp_flags; | 811 | 28.8k | #endif | 812 | 28.8k | return ((flags & feature) != 0); | 813 | 28.8k | } |
Unexecuted instantiation: interpolationobject.c:PyType_HasFeature iterobject.c:PyType_HasFeature Line | Count | Source | 804 | 3.81M | { | 805 | 3.81M | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 3.81M | flags = type->tp_flags; | 811 | 3.81M | #endif | 812 | 3.81M | return ((flags & feature) != 0); | 813 | 3.81M | } |
Unexecuted instantiation: odictobject.c:PyType_HasFeature Unexecuted instantiation: methodobject.c:PyType_HasFeature Unexecuted instantiation: namespaceobject.c:PyType_HasFeature Unexecuted instantiation: _contextvars.c:PyType_HasFeature Unexecuted instantiation: Python-ast.c:PyType_HasFeature Unexecuted instantiation: Python-tokenize.c:PyType_HasFeature Unexecuted instantiation: asdl.c:PyType_HasFeature Unexecuted instantiation: assemble.c:PyType_HasFeature Unexecuted instantiation: ast.c:PyType_HasFeature ast_preprocess.c:PyType_HasFeature Line | Count | Source | 804 | 511 | { | 805 | 511 | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 511 | flags = type->tp_flags; | 811 | 511 | #endif | 812 | 511 | return ((flags & feature) != 0); | 813 | 511 | } |
Unexecuted instantiation: ast_unparse.c:PyType_HasFeature Unexecuted instantiation: critical_section.c:PyType_HasFeature Unexecuted instantiation: crossinterp.c:PyType_HasFeature Unexecuted instantiation: getcopyright.c:PyType_HasFeature Unexecuted instantiation: getplatform.c:PyType_HasFeature Unexecuted instantiation: getversion.c:PyType_HasFeature Unexecuted instantiation: optimizer.c:PyType_HasFeature Unexecuted instantiation: pathconfig.c:PyType_HasFeature Unexecuted instantiation: structmember.c:PyType_HasFeature pegen.c:PyType_HasFeature Line | Count | Source | 804 | 54.6k | { | 805 | 54.6k | unsigned long flags; | 806 | | #ifdef Py_LIMITED_API | 807 | | // PyTypeObject is opaque in the limited C API | 808 | | flags = PyType_GetFlags(type); | 809 | | #else | 810 | 54.6k | flags = type->tp_flags; | 811 | 54.6k | #endif | 812 | 54.6k | return ((flags & feature) != 0); | 813 | 54.6k | } |
Unexecuted instantiation: pegen_errors.c:PyType_HasFeature Unexecuted instantiation: parser.c:PyType_HasFeature Unexecuted instantiation: buffer.c:PyType_HasFeature Unexecuted instantiation: lexer.c:PyType_HasFeature Unexecuted instantiation: state.c:PyType_HasFeature Unexecuted instantiation: readline_tokenizer.c:PyType_HasFeature Unexecuted instantiation: string_tokenizer.c:PyType_HasFeature Unexecuted instantiation: utf8_tokenizer.c:PyType_HasFeature Unexecuted instantiation: getcompiler.c:PyType_HasFeature Unexecuted instantiation: mystrtoul.c:PyType_HasFeature Unexecuted instantiation: token.c:PyType_HasFeature Unexecuted instantiation: action_helpers.c:PyType_HasFeature Unexecuted instantiation: string_parser.c:PyType_HasFeature |
814 | | |
815 | 5.90G | #define PyType_FastSubclass(type, flag) PyType_HasFeature((type), (flag)) |
816 | | |
817 | 387M | static inline int PyType_Check(PyObject *op) { |
818 | 387M | return PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS); |
819 | 387M | } Unexecuted instantiation: bytesobject.c:PyType_Check Unexecuted instantiation: call.c:PyType_Check Unexecuted instantiation: exceptions.c:PyType_Check Unexecuted instantiation: genericaliasobject.c:PyType_Check Unexecuted instantiation: floatobject.c:PyType_Check Unexecuted instantiation: listobject.c:PyType_Check Unexecuted instantiation: longobject.c:PyType_Check Unexecuted instantiation: dictobject.c:PyType_Check Unexecuted instantiation: memoryobject.c:PyType_Check Unexecuted instantiation: moduleobject.c:PyType_Check Unexecuted instantiation: object.c:PyType_Check Unexecuted instantiation: obmalloc.c:PyType_Check Unexecuted instantiation: picklebufobject.c:PyType_Check Unexecuted instantiation: rangeobject.c:PyType_Check Unexecuted instantiation: setobject.c:PyType_Check Unexecuted instantiation: sliceobject.c:PyType_Check Unexecuted instantiation: structseq.c:PyType_Check Unexecuted instantiation: templateobject.c:PyType_Check Unexecuted instantiation: tupleobject.c:PyType_Check typeobject.c:PyType_Check Line | Count | Source | 817 | 72.8M | static inline int PyType_Check(PyObject *op) { | 818 | 72.8M | return PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS); | 819 | 72.8M | } |
Unexecuted instantiation: typevarobject.c:PyType_Check Unexecuted instantiation: unicode_format.c:PyType_Check Unexecuted instantiation: unicode_formatter.c:PyType_Check Unexecuted instantiation: unicode_writer.c:PyType_Check Unexecuted instantiation: unicodectype.c:PyType_Check Unexecuted instantiation: unicodeobject.c:PyType_Check unionobject.c:PyType_Check Line | Count | Source | 817 | 475 | static inline int PyType_Check(PyObject *op) { | 818 | 475 | return PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS); | 819 | 475 | } |
weakrefobject.c:PyType_Check Line | Count | Source | 817 | 38.5M | static inline int PyType_Check(PyObject *op) { | 818 | 38.5M | return PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS); | 819 | 38.5M | } |
Unexecuted instantiation: _warnings.c:PyType_Check bltinmodule.c:PyType_Check Line | Count | Source | 817 | 9.05k | static inline int PyType_Check(PyObject *op) { | 818 | 9.05k | return PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS); | 819 | 9.05k | } |
Line | Count | Source | 817 | 146M | static inline int PyType_Check(PyObject *op) { | 818 | 146M | return PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS); | 819 | 146M | } |
Unexecuted instantiation: codecs.c:PyType_Check Unexecuted instantiation: codegen.c:PyType_Check Unexecuted instantiation: compile.c:PyType_Check Unexecuted instantiation: context.c:PyType_Check Line | Count | Source | 817 | 91.4M | static inline int PyType_Check(PyObject *op) { | 818 | 91.4M | return PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS); | 819 | 91.4M | } |
Unexecuted instantiation: flowgraph.c:PyType_Check Unexecuted instantiation: frame.c:PyType_Check Unexecuted instantiation: future.c:PyType_Check Unexecuted instantiation: gc.c:PyType_Check Unexecuted instantiation: gc_gil.c:PyType_Check Unexecuted instantiation: getargs.c:PyType_Check Unexecuted instantiation: ceval_gil.c:PyType_Check Unexecuted instantiation: hamt.c:PyType_Check Unexecuted instantiation: hashtable.c:PyType_Check Unexecuted instantiation: import.c:PyType_Check Unexecuted instantiation: importdl.c:PyType_Check Unexecuted instantiation: initconfig.c:PyType_Check Unexecuted instantiation: instrumentation.c:PyType_Check Unexecuted instantiation: instruction_sequence.c:PyType_Check Unexecuted instantiation: intrinsics.c:PyType_Check Unexecuted instantiation: legacy_tracing.c:PyType_Check Unexecuted instantiation: lock.c:PyType_Check Unexecuted instantiation: marshal.c:PyType_Check Unexecuted instantiation: modsupport.c:PyType_Check Unexecuted instantiation: mysnprintf.c:PyType_Check Unexecuted instantiation: parking_lot.c:PyType_Check Unexecuted instantiation: preconfig.c:PyType_Check Unexecuted instantiation: pyarena.c:PyType_Check Unexecuted instantiation: pyctype.c:PyType_Check Unexecuted instantiation: pyhash.c:PyType_Check Unexecuted instantiation: pylifecycle.c:PyType_Check Unexecuted instantiation: pymath.c:PyType_Check Unexecuted instantiation: pystate.c:PyType_Check Unexecuted instantiation: pythonrun.c:PyType_Check Unexecuted instantiation: pytime.c:PyType_Check Unexecuted instantiation: qsbr.c:PyType_Check Unexecuted instantiation: bootstrap_hash.c:PyType_Check specialize.c:PyType_Check Line | Count | Source | 817 | 1.25M | static inline int PyType_Check(PyObject *op) { | 818 | 1.25M | return PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS); | 819 | 1.25M | } |
Unexecuted instantiation: symtable.c:PyType_Check Unexecuted instantiation: sysmodule.c:PyType_Check Unexecuted instantiation: thread.c:PyType_Check Unexecuted instantiation: traceback.c:PyType_Check Unexecuted instantiation: tracemalloc.c:PyType_Check Unexecuted instantiation: getopt.c:PyType_Check Unexecuted instantiation: pystrcmp.c:PyType_Check Unexecuted instantiation: pystrtod.c:PyType_Check Unexecuted instantiation: pystrhex.c:PyType_Check Unexecuted instantiation: dtoa.c:PyType_Check Unexecuted instantiation: fileutils.c:PyType_Check Unexecuted instantiation: suggestions.c:PyType_Check Unexecuted instantiation: perf_trampoline.c:PyType_Check Unexecuted instantiation: perf_jit_trampoline.c:PyType_Check Unexecuted instantiation: remote_debugging.c:PyType_Check Unexecuted instantiation: dynload_shlib.c:PyType_Check Unexecuted instantiation: config.c:PyType_Check Unexecuted instantiation: gcmodule.c:PyType_Check Unexecuted instantiation: _asynciomodule.c:PyType_Check Unexecuted instantiation: atexitmodule.c:PyType_Check Unexecuted instantiation: faulthandler.c:PyType_Check Unexecuted instantiation: posixmodule.c:PyType_Check Unexecuted instantiation: signalmodule.c:PyType_Check Unexecuted instantiation: _tracemalloc.c:PyType_Check Unexecuted instantiation: _suggestions.c:PyType_Check Unexecuted instantiation: _datetimemodule.c:PyType_Check Unexecuted instantiation: _codecsmodule.c:PyType_Check Unexecuted instantiation: _collectionsmodule.c:PyType_Check Unexecuted instantiation: errnomodule.c:PyType_Check Unexecuted instantiation: _iomodule.c:PyType_Check Unexecuted instantiation: iobase.c:PyType_Check Unexecuted instantiation: fileio.c:PyType_Check Unexecuted instantiation: bytesio.c:PyType_Check Unexecuted instantiation: bufferedio.c:PyType_Check Unexecuted instantiation: textio.c:PyType_Check Unexecuted instantiation: stringio.c:PyType_Check Unexecuted instantiation: itertoolsmodule.c:PyType_Check Unexecuted instantiation: sre.c:PyType_Check Unexecuted instantiation: _sysconfig.c:PyType_Check Unexecuted instantiation: _threadmodule.c:PyType_Check Unexecuted instantiation: timemodule.c:PyType_Check Unexecuted instantiation: _typesmodule.c:PyType_Check Unexecuted instantiation: _typingmodule.c:PyType_Check Unexecuted instantiation: _weakref.c:PyType_Check Line | Count | Source | 817 | 2.38k | static inline int PyType_Check(PyObject *op) { | 818 | 2.38k | return PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS); | 819 | 2.38k | } |
Unexecuted instantiation: _functoolsmodule.c:PyType_Check Unexecuted instantiation: _localemodule.c:PyType_Check Unexecuted instantiation: _opcode.c:PyType_Check Unexecuted instantiation: _operator.c:PyType_Check Unexecuted instantiation: _stat.c:PyType_Check Unexecuted instantiation: symtablemodule.c:PyType_Check Unexecuted instantiation: pwdmodule.c:PyType_Check Unexecuted instantiation: getpath.c:PyType_Check Unexecuted instantiation: frozen.c:PyType_Check Unexecuted instantiation: getbuildinfo.c:PyType_Check Unexecuted instantiation: peg_api.c:PyType_Check Unexecuted instantiation: file_tokenizer.c:PyType_Check Unexecuted instantiation: helpers.c:PyType_Check Unexecuted instantiation: myreadline.c:PyType_Check Line | Count | Source | 817 | 29.4M | static inline int PyType_Check(PyObject *op) { | 818 | 29.4M | return PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS); | 819 | 29.4M | } |
Unexecuted instantiation: boolobject.c:PyType_Check Unexecuted instantiation: bytes_methods.c:PyType_Check Unexecuted instantiation: bytearrayobject.c:PyType_Check Unexecuted instantiation: capsule.c:PyType_Check Unexecuted instantiation: cellobject.c:PyType_Check Unexecuted instantiation: classobject.c:PyType_Check Unexecuted instantiation: codeobject.c:PyType_Check Unexecuted instantiation: complexobject.c:PyType_Check descrobject.c:PyType_Check Line | Count | Source | 817 | 7.33M | static inline int PyType_Check(PyObject *op) { | 818 | 7.33M | return PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS); | 819 | 7.33M | } |
Unexecuted instantiation: enumobject.c:PyType_Check Line | Count | Source | 817 | 982 | static inline int PyType_Check(PyObject *op) { | 818 | 982 | return PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_TYPE_SUBCLASS); | 819 | 982 | } |
Unexecuted instantiation: fileobject.c:PyType_Check Unexecuted instantiation: frameobject.c:PyType_Check Unexecuted instantiation: funcobject.c:PyType_Check Unexecuted instantiation: interpolationobject.c:PyType_Check Unexecuted instantiation: iterobject.c:PyType_Check Unexecuted instantiation: odictobject.c:PyType_Check Unexecuted instantiation: methodobject.c:PyType_Check Unexecuted instantiation: namespaceobject.c:PyType_Check Unexecuted instantiation: _contextvars.c:PyType_Check Unexecuted instantiation: Python-ast.c:PyType_Check Unexecuted instantiation: Python-tokenize.c:PyType_Check Unexecuted instantiation: asdl.c:PyType_Check Unexecuted instantiation: assemble.c:PyType_Check Unexecuted instantiation: ast.c:PyType_Check Unexecuted instantiation: ast_preprocess.c:PyType_Check Unexecuted instantiation: ast_unparse.c:PyType_Check Unexecuted instantiation: critical_section.c:PyType_Check Unexecuted instantiation: crossinterp.c:PyType_Check Unexecuted instantiation: getcopyright.c:PyType_Check Unexecuted instantiation: getplatform.c:PyType_Check Unexecuted instantiation: getversion.c:PyType_Check Unexecuted instantiation: optimizer.c:PyType_Check Unexecuted instantiation: pathconfig.c:PyType_Check Unexecuted instantiation: structmember.c:PyType_Check Unexecuted instantiation: pegen.c:PyType_Check Unexecuted instantiation: pegen_errors.c:PyType_Check Unexecuted instantiation: parser.c:PyType_Check Unexecuted instantiation: buffer.c:PyType_Check Unexecuted instantiation: lexer.c:PyType_Check Unexecuted instantiation: state.c:PyType_Check Unexecuted instantiation: readline_tokenizer.c:PyType_Check Unexecuted instantiation: string_tokenizer.c:PyType_Check Unexecuted instantiation: utf8_tokenizer.c:PyType_Check Unexecuted instantiation: getcompiler.c:PyType_Check Unexecuted instantiation: mystrtoul.c:PyType_Check Unexecuted instantiation: token.c:PyType_Check Unexecuted instantiation: action_helpers.c:PyType_Check Unexecuted instantiation: string_parser.c:PyType_Check |
820 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
821 | 607M | # define PyType_Check(op) PyType_Check(_PyObject_CAST(op)) |
822 | | #endif |
823 | | |
824 | | #define _PyType_CAST(op) \ |
825 | 345M | (assert(PyType_Check(op)), _Py_CAST(PyTypeObject*, (op))) |
826 | | |
827 | 18.4M | static inline int PyType_CheckExact(PyObject *op) { |
828 | 18.4M | return Py_IS_TYPE(op, &PyType_Type); |
829 | 18.4M | } Unexecuted instantiation: bytesobject.c:PyType_CheckExact Unexecuted instantiation: call.c:PyType_CheckExact Unexecuted instantiation: exceptions.c:PyType_CheckExact Unexecuted instantiation: genericaliasobject.c:PyType_CheckExact Unexecuted instantiation: floatobject.c:PyType_CheckExact Unexecuted instantiation: listobject.c:PyType_CheckExact Unexecuted instantiation: longobject.c:PyType_CheckExact Unexecuted instantiation: dictobject.c:PyType_CheckExact Unexecuted instantiation: memoryobject.c:PyType_CheckExact Unexecuted instantiation: moduleobject.c:PyType_CheckExact Unexecuted instantiation: object.c:PyType_CheckExact Unexecuted instantiation: obmalloc.c:PyType_CheckExact Unexecuted instantiation: picklebufobject.c:PyType_CheckExact Unexecuted instantiation: rangeobject.c:PyType_CheckExact Unexecuted instantiation: setobject.c:PyType_CheckExact Unexecuted instantiation: sliceobject.c:PyType_CheckExact Unexecuted instantiation: structseq.c:PyType_CheckExact Unexecuted instantiation: templateobject.c:PyType_CheckExact Unexecuted instantiation: tupleobject.c:PyType_CheckExact Unexecuted instantiation: typeobject.c:PyType_CheckExact Unexecuted instantiation: typevarobject.c:PyType_CheckExact Unexecuted instantiation: unicode_format.c:PyType_CheckExact Unexecuted instantiation: unicode_formatter.c:PyType_CheckExact Unexecuted instantiation: unicode_writer.c:PyType_CheckExact Unexecuted instantiation: unicodectype.c:PyType_CheckExact Unexecuted instantiation: unicodeobject.c:PyType_CheckExact Unexecuted instantiation: unionobject.c:PyType_CheckExact Unexecuted instantiation: weakrefobject.c:PyType_CheckExact Unexecuted instantiation: _warnings.c:PyType_CheckExact Unexecuted instantiation: bltinmodule.c:PyType_CheckExact Unexecuted instantiation: ceval.c:PyType_CheckExact Unexecuted instantiation: codecs.c:PyType_CheckExact Unexecuted instantiation: codegen.c:PyType_CheckExact Unexecuted instantiation: compile.c:PyType_CheckExact Unexecuted instantiation: context.c:PyType_CheckExact Unexecuted instantiation: errors.c:PyType_CheckExact Unexecuted instantiation: flowgraph.c:PyType_CheckExact Unexecuted instantiation: frame.c:PyType_CheckExact Unexecuted instantiation: future.c:PyType_CheckExact Unexecuted instantiation: gc.c:PyType_CheckExact Unexecuted instantiation: gc_gil.c:PyType_CheckExact Unexecuted instantiation: getargs.c:PyType_CheckExact Unexecuted instantiation: ceval_gil.c:PyType_CheckExact Unexecuted instantiation: hamt.c:PyType_CheckExact Unexecuted instantiation: hashtable.c:PyType_CheckExact Unexecuted instantiation: import.c:PyType_CheckExact Unexecuted instantiation: importdl.c:PyType_CheckExact Unexecuted instantiation: initconfig.c:PyType_CheckExact Unexecuted instantiation: instrumentation.c:PyType_CheckExact Unexecuted instantiation: instruction_sequence.c:PyType_CheckExact Unexecuted instantiation: intrinsics.c:PyType_CheckExact Unexecuted instantiation: legacy_tracing.c:PyType_CheckExact Unexecuted instantiation: lock.c:PyType_CheckExact Unexecuted instantiation: marshal.c:PyType_CheckExact Unexecuted instantiation: modsupport.c:PyType_CheckExact Unexecuted instantiation: mysnprintf.c:PyType_CheckExact Unexecuted instantiation: parking_lot.c:PyType_CheckExact Unexecuted instantiation: preconfig.c:PyType_CheckExact Unexecuted instantiation: pyarena.c:PyType_CheckExact Unexecuted instantiation: pyctype.c:PyType_CheckExact Unexecuted instantiation: pyhash.c:PyType_CheckExact Unexecuted instantiation: pylifecycle.c:PyType_CheckExact Unexecuted instantiation: pymath.c:PyType_CheckExact Unexecuted instantiation: pystate.c:PyType_CheckExact Unexecuted instantiation: pythonrun.c:PyType_CheckExact Unexecuted instantiation: pytime.c:PyType_CheckExact Unexecuted instantiation: qsbr.c:PyType_CheckExact Unexecuted instantiation: bootstrap_hash.c:PyType_CheckExact Unexecuted instantiation: specialize.c:PyType_CheckExact Unexecuted instantiation: symtable.c:PyType_CheckExact Unexecuted instantiation: sysmodule.c:PyType_CheckExact Unexecuted instantiation: thread.c:PyType_CheckExact Unexecuted instantiation: traceback.c:PyType_CheckExact Unexecuted instantiation: tracemalloc.c:PyType_CheckExact Unexecuted instantiation: getopt.c:PyType_CheckExact Unexecuted instantiation: pystrcmp.c:PyType_CheckExact Unexecuted instantiation: pystrtod.c:PyType_CheckExact Unexecuted instantiation: pystrhex.c:PyType_CheckExact Unexecuted instantiation: dtoa.c:PyType_CheckExact Unexecuted instantiation: fileutils.c:PyType_CheckExact Unexecuted instantiation: suggestions.c:PyType_CheckExact Unexecuted instantiation: perf_trampoline.c:PyType_CheckExact Unexecuted instantiation: perf_jit_trampoline.c:PyType_CheckExact Unexecuted instantiation: remote_debugging.c:PyType_CheckExact Unexecuted instantiation: dynload_shlib.c:PyType_CheckExact Unexecuted instantiation: config.c:PyType_CheckExact Unexecuted instantiation: gcmodule.c:PyType_CheckExact Unexecuted instantiation: _asynciomodule.c:PyType_CheckExact Unexecuted instantiation: atexitmodule.c:PyType_CheckExact Unexecuted instantiation: faulthandler.c:PyType_CheckExact Unexecuted instantiation: posixmodule.c:PyType_CheckExact Unexecuted instantiation: signalmodule.c:PyType_CheckExact Unexecuted instantiation: _tracemalloc.c:PyType_CheckExact Unexecuted instantiation: _suggestions.c:PyType_CheckExact Unexecuted instantiation: _datetimemodule.c:PyType_CheckExact Unexecuted instantiation: _codecsmodule.c:PyType_CheckExact Unexecuted instantiation: _collectionsmodule.c:PyType_CheckExact Unexecuted instantiation: errnomodule.c:PyType_CheckExact Unexecuted instantiation: _iomodule.c:PyType_CheckExact Unexecuted instantiation: iobase.c:PyType_CheckExact Unexecuted instantiation: fileio.c:PyType_CheckExact Unexecuted instantiation: bytesio.c:PyType_CheckExact Unexecuted instantiation: bufferedio.c:PyType_CheckExact Unexecuted instantiation: textio.c:PyType_CheckExact Unexecuted instantiation: stringio.c:PyType_CheckExact Unexecuted instantiation: itertoolsmodule.c:PyType_CheckExact Unexecuted instantiation: sre.c:PyType_CheckExact Unexecuted instantiation: _sysconfig.c:PyType_CheckExact Unexecuted instantiation: _threadmodule.c:PyType_CheckExact Unexecuted instantiation: timemodule.c:PyType_CheckExact Unexecuted instantiation: _typesmodule.c:PyType_CheckExact Unexecuted instantiation: _typingmodule.c:PyType_CheckExact Unexecuted instantiation: _weakref.c:PyType_CheckExact Unexecuted instantiation: _abc.c:PyType_CheckExact Unexecuted instantiation: _functoolsmodule.c:PyType_CheckExact Unexecuted instantiation: _localemodule.c:PyType_CheckExact Unexecuted instantiation: _opcode.c:PyType_CheckExact Unexecuted instantiation: _operator.c:PyType_CheckExact Unexecuted instantiation: _stat.c:PyType_CheckExact Unexecuted instantiation: symtablemodule.c:PyType_CheckExact Unexecuted instantiation: pwdmodule.c:PyType_CheckExact Unexecuted instantiation: getpath.c:PyType_CheckExact Unexecuted instantiation: frozen.c:PyType_CheckExact Unexecuted instantiation: getbuildinfo.c:PyType_CheckExact Unexecuted instantiation: peg_api.c:PyType_CheckExact Unexecuted instantiation: file_tokenizer.c:PyType_CheckExact Unexecuted instantiation: helpers.c:PyType_CheckExact Unexecuted instantiation: myreadline.c:PyType_CheckExact abstract.c:PyType_CheckExact Line | Count | Source | 827 | 18.4M | static inline int PyType_CheckExact(PyObject *op) { | 828 | 18.4M | return Py_IS_TYPE(op, &PyType_Type); | 829 | 18.4M | } |
Unexecuted instantiation: boolobject.c:PyType_CheckExact Unexecuted instantiation: bytes_methods.c:PyType_CheckExact Unexecuted instantiation: bytearrayobject.c:PyType_CheckExact Unexecuted instantiation: capsule.c:PyType_CheckExact Unexecuted instantiation: cellobject.c:PyType_CheckExact Unexecuted instantiation: classobject.c:PyType_CheckExact Unexecuted instantiation: codeobject.c:PyType_CheckExact Unexecuted instantiation: complexobject.c:PyType_CheckExact Unexecuted instantiation: descrobject.c:PyType_CheckExact Unexecuted instantiation: enumobject.c:PyType_CheckExact Unexecuted instantiation: genobject.c:PyType_CheckExact Unexecuted instantiation: fileobject.c:PyType_CheckExact Unexecuted instantiation: frameobject.c:PyType_CheckExact Unexecuted instantiation: funcobject.c:PyType_CheckExact Unexecuted instantiation: interpolationobject.c:PyType_CheckExact Unexecuted instantiation: iterobject.c:PyType_CheckExact Unexecuted instantiation: odictobject.c:PyType_CheckExact Unexecuted instantiation: methodobject.c:PyType_CheckExact Unexecuted instantiation: namespaceobject.c:PyType_CheckExact Unexecuted instantiation: _contextvars.c:PyType_CheckExact Unexecuted instantiation: Python-ast.c:PyType_CheckExact Unexecuted instantiation: Python-tokenize.c:PyType_CheckExact Unexecuted instantiation: asdl.c:PyType_CheckExact Unexecuted instantiation: assemble.c:PyType_CheckExact Unexecuted instantiation: ast.c:PyType_CheckExact Unexecuted instantiation: ast_preprocess.c:PyType_CheckExact Unexecuted instantiation: ast_unparse.c:PyType_CheckExact Unexecuted instantiation: critical_section.c:PyType_CheckExact Unexecuted instantiation: crossinterp.c:PyType_CheckExact Unexecuted instantiation: getcopyright.c:PyType_CheckExact Unexecuted instantiation: getplatform.c:PyType_CheckExact Unexecuted instantiation: getversion.c:PyType_CheckExact Unexecuted instantiation: optimizer.c:PyType_CheckExact Unexecuted instantiation: pathconfig.c:PyType_CheckExact Unexecuted instantiation: structmember.c:PyType_CheckExact Unexecuted instantiation: pegen.c:PyType_CheckExact Unexecuted instantiation: pegen_errors.c:PyType_CheckExact Unexecuted instantiation: parser.c:PyType_CheckExact Unexecuted instantiation: buffer.c:PyType_CheckExact Unexecuted instantiation: lexer.c:PyType_CheckExact Unexecuted instantiation: state.c:PyType_CheckExact Unexecuted instantiation: readline_tokenizer.c:PyType_CheckExact Unexecuted instantiation: string_tokenizer.c:PyType_CheckExact Unexecuted instantiation: utf8_tokenizer.c:PyType_CheckExact Unexecuted instantiation: getcompiler.c:PyType_CheckExact Unexecuted instantiation: mystrtoul.c:PyType_CheckExact Unexecuted instantiation: token.c:PyType_CheckExact Unexecuted instantiation: action_helpers.c:PyType_CheckExact Unexecuted instantiation: string_parser.c:PyType_CheckExact |
830 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000 |
831 | 18.4M | # define PyType_CheckExact(op) PyType_CheckExact(_PyObject_CAST(op)) |
832 | | #endif |
833 | | |
834 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030d0000 |
835 | | PyAPI_FUNC(PyObject *) PyType_GetModuleByDef(PyTypeObject *, PyModuleDef *); |
836 | | #endif |
837 | | |
838 | | #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030e0000 |
839 | | PyAPI_FUNC(int) PyType_Freeze(PyTypeObject *type); |
840 | | #endif |
841 | | |
842 | | #ifdef __cplusplus |
843 | | } |
844 | | #endif |
845 | | #endif // !Py_OBJECT_H |