Debian Codegraph @

Tools/c-analyzer/cpython/globals-to-fix.tsv

raw
1 filename funcname name reason
2 #??? - somevar ???
3
4 # These are all variables that we will be making non-global.
5
6 ##################################
7 ## global objects to fix in core code
8
9 ##-----------------------
10 ## exported builtin types (C-API)
11
12 Objects/boolobject.c - PyBool_Type -
13 Objects/bytearrayobject.c - PyByteArrayIter_Type -
14 Objects/bytearrayobject.c - PyByteArray_Type -
15 Objects/bytesobject.c - PyBytesIter_Type -
16 Objects/bytesobject.c - PyBytes_Type -
17 Objects/capsule.c - PyCapsule_Type -
18 Objects/cellobject.c - PyCell_Type -
19 Objects/classobject.c - PyInstanceMethod_Type -
20 Objects/classobject.c - PyMethod_Type -
21 Objects/codeobject.c - PyCode_Type -
22 Objects/complexobject.c - PyComplex_Type -
23 Objects/descrobject.c - PyClassMethodDescr_Type -
24 Objects/descrobject.c - PyDictProxy_Type -
25 Objects/descrobject.c - PyGetSetDescr_Type -
26 Objects/descrobject.c - PyMemberDescr_Type -
27 Objects/descrobject.c - PyMethodDescr_Type -
28 Objects/descrobject.c - PyProperty_Type -
29 Objects/descrobject.c - PyWrapperDescr_Type -
30 Objects/descrobject.c - _PyMethodWrapper_Type -
31 Objects/dictobject.c - PyDictItems_Type -
32 Objects/dictobject.c - PyDictIterItem_Type -
33 Objects/dictobject.c - PyDictIterKey_Type -
34 Objects/dictobject.c - PyDictIterValue_Type -
35 Objects/dictobject.c - PyDictKeys_Type -
36 Objects/dictobject.c - PyDictRevIterItem_Type -
37 Objects/dictobject.c - PyDictRevIterKey_Type -
38 Objects/dictobject.c - PyDictRevIterValue_Type -
39 Objects/dictobject.c - PyDictValues_Type -
40 Objects/dictobject.c - PyDict_Type -
41 Objects/enumobject.c - PyEnum_Type -
42 Objects/enumobject.c - PyReversed_Type -
43 Objects/fileobject.c - PyStdPrinter_Type -
44 Objects/floatobject.c - PyFloat_Type -
45 Objects/frameobject.c - PyFrame_Type -
46 Objects/frameobject.c - PyFrameLocalsProxy_Type -
47 Objects/funcobject.c - PyClassMethod_Type -
48 Objects/funcobject.c - PyFunction_Type -
49 Objects/funcobject.c - PyStaticMethod_Type -
50 Objects/genericaliasobject.c - Py_GenericAliasType -
51 Objects/genobject.c - PyAsyncGen_Type -
52 Objects/genobject.c - PyCoro_Type -
53 Objects/genobject.c - PyGen_Type -
54 Objects/genobject.c - _PyAsyncGenASend_Type -
55 Objects/genobject.c - _PyAsyncGenAThrow_Type -
56 Objects/genobject.c - _PyAsyncGenWrappedValue_Type -
57 Objects/genobject.c - _PyCoroWrapper_Type -
58 Objects/interpolationobject.c - _PyInterpolation_Type -
59 Objects/iterobject.c - PyCallIter_Type -
60 Objects/iterobject.c - PySeqIter_Type -
61 Objects/iterobject.c - _PyAnextAwaitable_Type -
62 Objects/listobject.c - PyListIter_Type -
63 Objects/listobject.c - PyListRevIter_Type -
64 Objects/listobject.c - PyList_Type -
65 Objects/longobject.c - PyLong_Type -
66 Objects/memoryobject.c - PyMemoryView_Type -
67 Objects/memoryobject.c - _PyManagedBuffer_Type -
68 Objects/methodobject.c - PyCFunction_Type -
69 Objects/methodobject.c - PyCMethod_Type -
70 Objects/moduleobject.c - PyModuleDef_Type -
71 Objects/moduleobject.c - PyModule_Type -
72 Objects/namespaceobject.c - _PyNamespace_Type -
73 Objects/object.c - _PyNone_Type -
74 Objects/object.c - _PyNotImplemented_Type -
75 Objects/object.c - _PyAnextAwaitable_Type -
76 Objects/odictobject.c - PyODictItems_Type -
77 Objects/odictobject.c - PyODictIter_Type -
78 Objects/odictobject.c - PyODictKeys_Type -
79 Objects/odictobject.c - PyODictValues_Type -
80 Objects/odictobject.c - PyODict_Type -
81 Objects/picklebufobject.c - PyPickleBuffer_Type -
82 Objects/rangeobject.c - PyLongRangeIter_Type -
83 Objects/rangeobject.c - PyRangeIter_Type -
84 Objects/rangeobject.c - PyRange_Type -
85 Objects/setobject.c - PyFrozenSet_Type -
86 Objects/setobject.c - PySetIter_Type -
87 Objects/setobject.c - PySet_Type -
88 Objects/sliceobject.c - PyEllipsis_Type -
89 Objects/sliceobject.c - PySlice_Type -
90 Objects/templateobject.c - _PyTemplateIter_Type -
91 Objects/templateobject.c - _PyTemplate_Type -
92 Objects/tupleobject.c - PyTupleIter_Type -
93 Objects/tupleobject.c - PyTuple_Type -
94 Objects/typeobject.c - _PyBufferWrapper_Type -
95 Objects/typeobject.c - PyBaseObject_Type -
96 Objects/typeobject.c - PySuper_Type -
97 Objects/typeobject.c - PyType_Type -
98 Objects/typevarobject.c - _PyTypeAlias_Type -
99 Objects/typevarobject.c - _PyNoDefault_Type -
100 Objects/unicodeobject.c - PyUnicodeIter_Type -
101 Objects/unicodeobject.c - PyUnicode_Type -
102 Objects/weakrefobject.c - _PyWeakref_CallableProxyType -
103 Objects/weakrefobject.c - _PyWeakref_ProxyType -
104 Objects/weakrefobject.c - _PyWeakref_RefType -
105 Python/bltinmodule.c - PyFilter_Type -
106 Python/bltinmodule.c - PyMap_Type -
107 Python/bltinmodule.c - PyZip_Type -
108 Python/context.c - PyContextToken_Type -
109 Python/context.c - PyContextVar_Type -
110 Python/context.c - PyContext_Type -
111 Python/instruction_sequence.c - _PyInstructionSequence_Type -
112 Python/instrumentation.c - _PyLegacyBranchEventHandler_Type -
113 Python/instrumentation.c - _PyBranchesIterator -
114 Python/traceback.c - PyTraceBack_Type -
115
116 ##-----------------------
117 ## other exported builtin types
118
119 # Not in a .h file:
120 Objects/codeobject.c - _PyLineIterator -
121 # Not in a .h file:
122 Objects/codeobject.c - _PyPositionsIterator -
123 Objects/genericaliasobject.c - _Py_GenericAliasIterType -
124 # Not in a .h file:
125 Objects/memoryobject.c - _PyMemoryIter_Type -
126 Objects/unicodeobject.c - _PyUnicodeASCIIIter_Type -
127 Objects/unionobject.c - _PyUnion_Type -
128 Python/context.c - _PyContextTokenMissing_Type -
129 Python/hamt.c - _PyHamtItems_Type -
130 Python/hamt.c - _PyHamtKeys_Type -
131 Python/hamt.c - _PyHamtValues_Type -
132 Python/hamt.c - _PyHamt_ArrayNode_Type -
133 Python/hamt.c - _PyHamt_BitmapNode_Type -
134 Python/hamt.c - _PyHamt_CollisionNode_Type -
135 Python/hamt.c - _PyHamt_Type -
136 Python/symtable.c - PySTEntry_Type -
137
138 ##-----------------------
139 ## private static builtin types
140
141 Objects/setobject.c - _PySetDummy_Type -
142 Objects/stringlib/unicode_format.h - PyFormatterIter_Type -
143 Objects/stringlib/unicode_format.h - PyFieldNameIter_Type -
144 Objects/unicodeobject.c - EncodingMapType -
145 #Objects/unicodeobject.c - PyFieldNameIter_Type -
146 #Objects/unicodeobject.c - PyFormatterIter_Type -
147 Python/legacy_tracing.c - _PyLegacyEventHandler_Type -
148 Objects/object.c - _PyLegacyEventHandler_Type -
149
150
151 ##-----------------------
152 ## static builtin structseq
153
154 Objects/floatobject.c - FloatInfoType -
155 Objects/longobject.c - Int_InfoType -
156 Python/errors.c - UnraisableHookArgsType -
157 Python/sysmodule.c - AsyncGenHooksType -
158 Python/sysmodule.c - FlagsType -
159 Python/sysmodule.c - Hash_InfoType -
160 Python/sysmodule.c - VersionInfoType -
161 Python/thread.c - ThreadInfoType -
162
163 ##-----------------------
164 ## builtin exception types
165
166 Objects/exceptions.c - _PyExc_BaseException -
167 Objects/exceptions.c - _PyExc_BaseExceptionGroup -
168 Objects/exceptions.c - _PyExc_UnicodeEncodeError -
169 Objects/exceptions.c - _PyExc_UnicodeDecodeError -
170 Objects/exceptions.c - _PyExc_UnicodeTranslateError -
171 Objects/exceptions.c - _PyExc_MemoryError -
172 Objects/exceptions.c - _PyExc_Exception -
173 Objects/exceptions.c - _PyExc_TypeError -
174 Objects/exceptions.c - _PyExc_StopAsyncIteration -
175 Objects/exceptions.c - _PyExc_StopIteration -
176 Objects/exceptions.c - _PyExc_GeneratorExit -
177 Objects/exceptions.c - _PyExc_SystemExit -
178 Objects/exceptions.c - _PyExc_KeyboardInterrupt -
179 Objects/exceptions.c - _PyExc_ImportError -
180 Objects/exceptions.c - _PyExc_ModuleNotFoundError -
181 Objects/exceptions.c - _PyExc_OSError -
182 Objects/exceptions.c - _PyExc_BlockingIOError -
183 Objects/exceptions.c - _PyExc_ConnectionError -
184 Objects/exceptions.c - _PyExc_ChildProcessError -
185 Objects/exceptions.c - _PyExc_BrokenPipeError -
186 Objects/exceptions.c - _PyExc_ConnectionAbortedError -
187 Objects/exceptions.c - _PyExc_ConnectionRefusedError -
188 Objects/exceptions.c - _PyExc_ConnectionResetError -
189 Objects/exceptions.c - _PyExc_FileExistsError -
190 Objects/exceptions.c - _PyExc_FileNotFoundError -
191 Objects/exceptions.c - _PyExc_IsADirectoryError -
192 Objects/exceptions.c - _PyExc_NotADirectoryError -
193 Objects/exceptions.c - _PyExc_InterruptedError -
194 Objects/exceptions.c - _PyExc_PermissionError -
195 Objects/exceptions.c - _PyExc_ProcessLookupError -
196 Objects/exceptions.c - _PyExc_TimeoutError -
197 Objects/exceptions.c - _PyExc_EOFError -
198 Objects/exceptions.c - _PyExc_RuntimeError -
199 Objects/exceptions.c - _PyExc_PythonFinalizationError -
200 Objects/exceptions.c - _PyExc_RecursionError -
201 Objects/exceptions.c - _PyExc_NotImplementedError -
202 Objects/exceptions.c - _PyExc_NameError -
203 Objects/exceptions.c - _PyExc_UnboundLocalError -
204 Objects/exceptions.c - _PyExc_AttributeError -
205 Objects/exceptions.c - _PyExc_SyntaxError -
206 Objects/exceptions.c - _PyExc_IndentationError -
207 Objects/exceptions.c - _PyExc_TabError -
208 Objects/exceptions.c - _PyExc_IncompleteInputError -
209 Objects/exceptions.c - _PyExc_LookupError -
210 Objects/exceptions.c - _PyExc_IndexError -
211 Objects/exceptions.c - _PyExc_KeyError -
212 Objects/exceptions.c - _PyExc_ValueError -
213 Objects/exceptions.c - _PyExc_UnicodeError -
214 Objects/exceptions.c - _PyExc_AssertionError -
215 Objects/exceptions.c - _PyExc_ArithmeticError -
216 Objects/exceptions.c - _PyExc_FloatingPointError -
217 Objects/exceptions.c - _PyExc_OverflowError -
218 Objects/exceptions.c - _PyExc_ZeroDivisionError -
219 Objects/exceptions.c - _PyExc_SystemError -
220 Objects/exceptions.c - _PyExc_ReferenceError -
221 Objects/exceptions.c - _PyExc_BufferError -
222 Objects/exceptions.c - _PyExc_Warning -
223 Objects/exceptions.c - _PyExc_UserWarning -
224 Objects/exceptions.c - _PyExc_DeprecationWarning -
225 Objects/exceptions.c - _PyExc_PendingDeprecationWarning -
226 Objects/exceptions.c - _PyExc_SyntaxWarning -
227 Objects/exceptions.c - _PyExc_RuntimeWarning -
228 Objects/exceptions.c - _PyExc_FutureWarning -
229 Objects/exceptions.c - _PyExc_ImportWarning -
230 Objects/exceptions.c - _PyExc_UnicodeWarning -
231 Objects/exceptions.c - _PyExc_BytesWarning -
232 Objects/exceptions.c - _PyExc_ResourceWarning -
233 Objects/exceptions.c - _PyExc_EncodingWarning -
234 Objects/exceptions.c - PyExc_EnvironmentError -
235 Objects/exceptions.c - PyExc_IOError -
236 Objects/exceptions.c - PyExc_BaseException -
237 Objects/exceptions.c - PyExc_BaseExceptionGroup -
238 Objects/exceptions.c - PyExc_Exception -
239 Objects/exceptions.c - PyExc_TypeError -
240 Objects/exceptions.c - PyExc_StopAsyncIteration -
241 Objects/exceptions.c - PyExc_StopIteration -
242 Objects/exceptions.c - PyExc_GeneratorExit -
243 Objects/exceptions.c - PyExc_SystemExit -
244 Objects/exceptions.c - PyExc_KeyboardInterrupt -
245 Objects/exceptions.c - PyExc_ImportError -
246 Objects/exceptions.c - PyExc_ModuleNotFoundError -
247 Objects/exceptions.c - PyExc_OSError -
248 Objects/exceptions.c - PyExc_BlockingIOError -
249 Objects/exceptions.c - PyExc_ConnectionError -
250 Objects/exceptions.c - PyExc_ChildProcessError -
251 Objects/exceptions.c - PyExc_BrokenPipeError -
252 Objects/exceptions.c - PyExc_ConnectionAbortedError -
253 Objects/exceptions.c - PyExc_ConnectionRefusedError -
254 Objects/exceptions.c - PyExc_ConnectionResetError -
255 Objects/exceptions.c - PyExc_FileExistsError -
256 Objects/exceptions.c - PyExc_FileNotFoundError -
257 Objects/exceptions.c - PyExc_IsADirectoryError -
258 Objects/exceptions.c - PyExc_NotADirectoryError -
259 Objects/exceptions.c - PyExc_InterruptedError -
260 Objects/exceptions.c - PyExc_PermissionError -
261 Objects/exceptions.c - PyExc_ProcessLookupError -
262 Objects/exceptions.c - PyExc_TimeoutError -
263 Objects/exceptions.c - PyExc_EOFError -
264 Objects/exceptions.c - PyExc_RuntimeError -
265 Objects/exceptions.c - PyExc_PythonFinalizationError -
266 Objects/exceptions.c - PyExc_RecursionError -
267 Objects/exceptions.c - PyExc_NotImplementedError -
268 Objects/exceptions.c - PyExc_NameError -
269 Objects/exceptions.c - PyExc_UnboundLocalError -
270 Objects/exceptions.c - PyExc_AttributeError -
271 Objects/exceptions.c - PyExc_SyntaxError -
272 Objects/exceptions.c - PyExc_IndentationError -
273 Objects/exceptions.c - PyExc_TabError -
274 Objects/exceptions.c - PyExc_IncompleteInputError -
275 Objects/exceptions.c - PyExc_LookupError -
276 Objects/exceptions.c - PyExc_IndexError -
277 Objects/exceptions.c - PyExc_KeyError -
278 Objects/exceptions.c - PyExc_ValueError -
279 Objects/exceptions.c - PyExc_UnicodeError -
280 Objects/exceptions.c - PyExc_UnicodeEncodeError -
281 Objects/exceptions.c - PyExc_UnicodeDecodeError -
282 Objects/exceptions.c - PyExc_UnicodeTranslateError -
283 Objects/exceptions.c - PyExc_AssertionError -
284 Objects/exceptions.c - PyExc_ArithmeticError -
285 Objects/exceptions.c - PyExc_FloatingPointError -
286 Objects/exceptions.c - PyExc_OverflowError -
287 Objects/exceptions.c - PyExc_ZeroDivisionError -
288 Objects/exceptions.c - PyExc_SystemError -
289 Objects/exceptions.c - PyExc_ReferenceError -
290 Objects/exceptions.c - PyExc_MemoryError -
291 Objects/exceptions.c - PyExc_BufferError -
292 Objects/exceptions.c - PyExc_Warning -
293 Objects/exceptions.c - PyExc_UserWarning -
294 Objects/exceptions.c - PyExc_DeprecationWarning -
295 Objects/exceptions.c - PyExc_PendingDeprecationWarning -
296 Objects/exceptions.c - PyExc_SyntaxWarning -
297 Objects/exceptions.c - PyExc_RuntimeWarning -
298 Objects/exceptions.c - PyExc_FutureWarning -
299 Objects/exceptions.c - PyExc_ImportWarning -
300 Objects/exceptions.c - PyExc_UnicodeWarning -
301 Objects/exceptions.c - PyExc_BytesWarning -
302 Objects/exceptions.c - PyExc_ResourceWarning -
303 Objects/exceptions.c - PyExc_EncodingWarning -
304 Python/crossinterp_exceptions.h - _PyExc_InterpreterError -
305 Python/crossinterp_exceptions.h - _PyExc_InterpreterNotFoundError -
306 Python/crossinterp_exceptions.h - PyExc_InterpreterError -
307 Python/crossinterp_exceptions.h - PyExc_InterpreterNotFoundError -
308
309 ##-----------------------
310 ## singletons
311
312 Modules/_datetimemodule.c - zero_delta -
313 Modules/_datetimemodule.c - utc_timezone -
314 Modules/_datetimemodule.c - capi -
315 Modules/_datetimemodule.c - _globals -
316 Objects/boolobject.c - _Py_FalseStruct -
317 Objects/boolobject.c - _Py_TrueStruct -
318 Objects/dictobject.c - empty_keys_struct -
319 Objects/object.c - _Py_NoneStruct -
320 Objects/object.c - _Py_NotImplementedStruct -
321 Objects/setobject.c - _dummy_struct -
322 Objects/setobject.c - _PySet_Dummy -
323 Objects/sliceobject.c - _Py_EllipsisObject -
324 Objects/typevarobject.c - _Py_NoDefaultStruct -
325 Python/instrumentation.c - _PyInstrumentation_DISABLE -
326 Python/instrumentation.c - _PyInstrumentation_MISSING -
327
328
329 ##################################
330 ## global non-objects to fix in core code
331
332 # <none>
333
334
335 ##################################
336 ## global objects to fix in builtin modules
337
338 ##-----------------------
339 ## static types
340
341 Modules/_testcapi/vectorcall.c - MethodDescriptorBase_Type -
342 Modules/_testcapi/vectorcall.c - MethodDescriptorDerived_Type -
343 Modules/_testcapi/vectorcall.c - MethodDescriptorNopGet_Type -
344 Modules/_testcapi/vectorcall.c - MethodDescriptor2_Type -
345 Modules/_testclinic.c - DeprStarInit -
346 Modules/_testclinic.c - DeprStarInitNoInline -
347 Modules/_testclinic.c - DeprStarNew -
348 Modules/_testclinic.c - DeprKwdInit -
349 Modules/_testclinic.c - DeprKwdInitNoInline -
350 Modules/_testclinic.c - DeprKwdNew -
351 Modules/_testclinic.c - TestClass -
352
353
354 ##################################
355 ## global non-objects to fix in builtin modules
356
357 Objects/memoryobject.c - bool_false -
358
359
360 ##################################
361 ## global objects to fix in extension modules
362
363 ##-----------------------
364 ## static types
365
366 Modules/_datetimemodule.c - PyDateTime_DateTimeType -
367 Modules/_datetimemodule.c - PyDateTime_DateType -
368 Modules/_datetimemodule.c - PyDateTime_DeltaType -
369 Modules/_datetimemodule.c - PyDateTime_IsoCalendarDateType -
370 Modules/_datetimemodule.c - PyDateTime_TZInfoType -
371 Modules/_datetimemodule.c - PyDateTime_TimeType -
372 Modules/_datetimemodule.c - PyDateTime_TimeZoneType -
373 Modules/xxmodule.c - Null_Type -
374 Modules/xxmodule.c - Str_Type -
375 Modules/xxmodule.c - Xxo_Type -
376 Modules/xxsubtype.c - spamdict_type -
377 Modules/xxsubtype.c - spamlist_type -
378 Modules/_testcapi/monitoring.c - PyCodeLike_Type -
379
380 ##-----------------------
381 ## non-static types - initialized once
382
383 ## heap types
384 Modules/_tkinter.c - PyTclObject_Type -
385 Modules/_tkinter.c - Tkapp_Type -
386 Modules/_tkinter.c - Tktt_Type -
387 Modules/xxlimited_35.c - Xxo_Type -
388
389 ## exception types
390 Modules/_tkinter.c - Tkinter_TclError -
391 Modules/xxlimited_35.c - ErrorObject -
392 Modules/xxmodule.c - ErrorObject -
393
394 ##-----------------------
395 ## other
396
397 ## state
398 Modules/_datetimemodule.c - _datetime_global_state -
399 Modules/_tkinter.c - tcl_lock -
400 Modules/_tkinter.c - excInCmd -
401 Modules/_tkinter.c - valInCmd -
402 Modules/_tkinter.c - trbInCmd -
403
404
405 ##################################
406 ## global non-objects to fix in extension modules
407
408 ##-----------------------
409 ## initialized once
410
411 ## other
412 Include/datetime.h - PyDateTimeAPI -
413 Modules/_ctypes/cfield.c _ctypes_init_fielddesc initialized -
414 Modules/_ctypes/cfield.c - formattable -
415 Modules/_ctypes/malloc_closure.c - _pagesize -
416 Modules/_cursesmodule.c - curses_module_loaded -
417 Modules/_cursesmodule.c - curses_initscr_called -
418 Modules/_cursesmodule.c - curses_setupterm_called -
419 Modules/_cursesmodule.c - curses_start_color_called -
420 Modules/_cursesmodule.c - curses_screen_encoding -
421 Modules/_elementtree.c - expat_capi -
422 Modules/readline.c - libedit_append_replace_history_offset -
423 Modules/readline.c - using_libedit_emulation -
424 Modules/readline.c - libedit_history_start -
425
426 ##-----------------------
427 ## state
428
429 Modules/_ctypes/malloc_closure.c - free_list -
430 Modules/_curses_panel.c - lop -
431 Modules/_ssl/debughelpers.c _PySSL_keylog_callback lock -
432 Modules/_tkinter.c - quitMainLoop -
433 Modules/_tkinter.c - errorInCmd -
434 Modules/_tkinter.c - Tkinter_busywaitinterval -
435 Modules/_tkinter.c - call_mutex -
436 Modules/_tkinter.c - var_mutex -
437 Modules/_tkinter.c - command_mutex -
438 Modules/_tkinter.c - HeadFHCD -
439 Modules/_tkinter.c - stdin_ready -
440 Modules/_tkinter.c - event_tstate -
441 Modules/readline.c - completer_word_break_characters -
442 Modules/readline.c - _history_length -
443 Modules/readline.c - should_auto_add_history -
444 Modules/readline.c - sigwinch_received -
445 Modules/readline.c - sigwinch_ohandler -
446 Modules/readline.c - completed_input_string -
447 Modules/rotatingtree.c - random_stream -
448 Modules/rotatingtree.c - random_value -
449 Modules/rotatingtree.c - random_mutex -
450 Modules/socketmodule.c - accept4_works -
451 Modules/socketmodule.c - sock_cloexec_works -