gh-90110: Clean Up the C-analyzer Globals Lists (gh-100091)

https://github.com/python/cpython/issues/90110
This commit is contained in:
Eric Snow
2022-12-07 15:02:47 -07:00
committed by GitHub
parent d92407ed49
commit d47ffeb9e3
4 changed files with 496 additions and 450 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ void *
_PyPegen_dummy_name(Parser *p, ...)
{
// XXX This leaks memory from the initial arena.
// Use a statically allocated variable instead of a pointer?
static void *cache = NULL;
if (cache != NULL) {
@@ -1287,4 +1288,4 @@ _PyPegen_nonparen_genexp_in_call(Parser *p, expr_ty args, asdl_comprehension_seq
_PyPegen_get_last_comprehension_item(last_comprehension),
"Generator expression must be parenthesized"
);
}
}
+55 -58
View File
@@ -4,10 +4,10 @@ filename funcname name reason
# These are all variables that we will be making non-global.
##################################
# global objects to fix in core code
## global objects to fix in core code
#-----------------------
# exported builtin types (C-API)
##-----------------------
## exported builtin types (C-API)
Objects/boolobject.c - PyBool_Type -
Objects/bytearrayobject.c - PyByteArrayIter_Type -
@@ -102,8 +102,8 @@ Python/context.c - PyContextVar_Type -
Python/context.c - PyContext_Type -
Python/traceback.c - PyTraceBack_Type -
#-----------------------
# other exported builtin types
##-----------------------
## other exported builtin types
# Not in a .h file:
Objects/codeobject.c - _PyLineIterator -
@@ -126,8 +126,8 @@ Python/hamt.c - _PyHamt_CollisionNode_Type -
Python/hamt.c - _PyHamt_Type -
Python/symtable.c - PySTEntry_Type -
#-----------------------
# private static builtin types
##-----------------------
## private static builtin types
Objects/setobject.c - _PySetDummy_Type -
Objects/stringlib/unicode_format.h - PyFormatterIter_Type -
@@ -136,8 +136,8 @@ Objects/unicodeobject.c - EncodingMapType -
#Objects/unicodeobject.c - PyFieldNameIter_Type -
#Objects/unicodeobject.c - PyFormatterIter_Type -
#-----------------------
# static builtin structseq
##-----------------------
## static builtin structseq
Objects/floatobject.c - FloatInfoType -
Objects/longobject.c - Int_InfoType -
@@ -148,8 +148,8 @@ Python/sysmodule.c - Hash_InfoType -
Python/sysmodule.c - VersionInfoType -
Python/thread.c - ThreadInfoType -
#-----------------------
# builtin exception types
##-----------------------
## builtin exception types
Objects/exceptions.c - _PyExc_BaseException -
Objects/exceptions.c - _PyExc_BaseExceptionGroup -
@@ -286,8 +286,8 @@ Objects/exceptions.c - PyExc_BytesWarning -
Objects/exceptions.c - PyExc_ResourceWarning -
Objects/exceptions.c - PyExc_EncodingWarning -
#-----------------------
# singletons
##-----------------------
## singletons
Objects/boolobject.c - _Py_FalseStruct -
Objects/boolobject.c - _Py_TrueStruct -
@@ -300,26 +300,26 @@ Objects/sliceobject.c - _Py_EllipsisObject -
##################################
# global non-objects to fix in core code
## global non-objects to fix in core code
#-----------------------
# effectively-const but initialized lazily
##-----------------------
## effectively-const but initialized lazily
# idempotent
## idempotent
Python/dtoa.c - p5s -
Objects/obmalloc.c new_arena debug_stats -
# others
## others
Python/perf_trampoline.c - perf_map_file -
Objects/unicodeobject.c - ucnhash_capi -
#-----------------------
# state
##-----------------------
## state
# local buffer
## local buffer
Python/suggestions.c levenshtein_distance buffer -
# other
## other
Objects/object.c - _Py_RefTotal -
Python/perf_trampoline.c - perf_status -
Python/perf_trampoline.c - extra_code_index -
@@ -329,10 +329,10 @@ Python/thread_pthread_stubs.h - py_tls_entries -
##################################
# global objects to fix in builtin modules
## global objects to fix in builtin modules
#-----------------------
# static types
##-----------------------
## static types
Modules/_collectionsmodule.c - defdict_type -
Modules/_collectionsmodule.c - deque_type -
@@ -381,10 +381,10 @@ Modules/itertoolsmodule.c - tee_type -
Modules/itertoolsmodule.c - teedataobject_type -
Modules/itertoolsmodule.c - ziplongest_type -
#-----------------------
# other
##-----------------------
## other
# state
## state
Modules/faulthandler.c - fatal_error -
Modules/faulthandler.c - thread -
Modules/faulthandler.c - user_signals -
@@ -393,10 +393,10 @@ Modules/faulthandler.c - old_stack -
##################################
# global non-objects to fix in builtin modules
## global non-objects to fix in builtin modules
#-----------------------
# initialized once
##-----------------------
## initialized once
Modules/_io/bufferedio.c _PyIO_trap_eintr eintr_int -
Modules/posixmodule.c os_dup2_impl dup3_works -
@@ -405,8 +405,8 @@ Modules/posixmodule.c - ticks_per_second -
Modules/timemodule.c _PyTime_GetClockWithInfo initialized -
Modules/timemodule.c _PyTime_GetProcessTimeWithInfo ticks_per_second -
#-----------------------
# state
##-----------------------
## state
Modules/_tracemalloc.c - allocators -
Modules/_tracemalloc.c - tables_lock -
@@ -420,7 +420,6 @@ Modules/_tracemalloc.c - tracemalloc_traces -
Modules/_tracemalloc.c - tracemalloc_domains -
Modules/_tracemalloc.c - tracemalloc_reentrant_key -
Modules/faulthandler.c faulthandler_dump_traceback reentrant -
Modules/posixmodule.c - environ -
Modules/signalmodule.c - is_tripped -
Modules/signalmodule.c - signal_global_state -
Modules/signalmodule.c - wakeup -
@@ -428,10 +427,10 @@ Modules/signalmodule.c - Handlers -
##################################
# global objects to fix in extension modules
## global objects to fix in extension modules
#-----------------------
# static types
##-----------------------
## static types
Modules/_asynciomodule.c - FutureIterType -
Modules/_asynciomodule.c - FutureType -
@@ -506,10 +505,10 @@ Modules/xxmodule.c - Xxo_Type -
Modules/xxsubtype.c - spamdict_type -
Modules/xxsubtype.c - spamlist_type -
#-----------------------
# non-static types - initialized once
##-----------------------
## non-static types - initialized once
# heap types
## heap types
Modules/_decimal/_decimal.c - DecimalTuple -
Modules/_decimal/_decimal.c - PyDecSignalDict_Type -
Modules/_tkinter.c - PyTclObject_Type -
@@ -517,7 +516,7 @@ Modules/_tkinter.c - Tkapp_Type -
Modules/_tkinter.c - Tktt_Type -
Modules/xxlimited_35.c - Xxo_Type -
# exception types
## exception types
Modules/_ctypes/_ctypes.c - PyExc_ArgError -
Modules/_cursesmodule.c - PyCursesError -
Modules/_decimal/_decimal.c - DecimalException -
@@ -528,15 +527,15 @@ Modules/socketmodule.c - socket_gaierror -
Modules/xxlimited_35.c - ErrorObject -
Modules/xxmodule.c - ErrorObject -
#-----------------------
# cached - initialized once
##-----------------------
## cached - initialized once
# manually cached PyUnicodeOjbect
## manually cached PyUnicodeOjbect
Modules/_asynciomodule.c - context_kwname -
Modules/_ctypes/callproc.c _ctypes_get_errobj error_object_name -
Modules/_ctypes/_ctypes.c CreateSwappedType suffix -
# other - during module init
## other - during module init
Modules/_asynciomodule.c - asyncio_mod -
Modules/_asynciomodule.c - traceback_extract_stack -
Modules/_asynciomodule.c - asyncio_future_repr_func -
@@ -551,10 +550,10 @@ Modules/_zoneinfo.c - io_open -
Modules/_zoneinfo.c - _tzpath_find_tzfile -
Modules/_zoneinfo.c - _common_mod -
#-----------------------
# other
##-----------------------
## other
# initialized once
## initialized once
Modules/_ctypes/_ctypes.c - _unpickle -
Modules/_ctypes/_ctypes.c PyCArrayType_from_ctype cache -
Modules/_cursesmodule.c - ModDict -
@@ -577,7 +576,7 @@ Modules/_decimal/_decimal.c - Rational -
Modules/_decimal/_decimal.c - SignalTuple -
Modules/arraymodule.c array_array___reduce_ex___impl array_reconstructor -
# state
## state
Modules/_asynciomodule.c - cached_running_holder -
Modules/_asynciomodule.c - fi_freelist -
Modules/_asynciomodule.c - fi_freelist_len -
@@ -592,20 +591,19 @@ Modules/_tkinter.c - valInCmd -
Modules/_tkinter.c - trbInCmd -
Modules/_zoneinfo.c - TIMEDELTA_CACHE -
Modules/_zoneinfo.c - ZONEINFO_WEAK_CACHE -
Modules/syslogmodule.c - S_ident_o -
##################################
# global non-objects to fix in extension modules
## global non-objects to fix in extension modules
#-----------------------
# initialized once
##-----------------------
## initialized once
# pre-allocated buffer
## pre-allocated buffer
Modules/nismodule.c nisproc_maplist_2 res -
Modules/pyexpat.c PyUnknownEncodingHandler template_buffer -
# other
## other
Include/datetime.h - PyDateTimeAPI -
Modules/_asynciomodule.c - module_initialized -
Modules/_ctypes/cfield.c _ctypes_get_fielddesc initialized -
@@ -650,8 +648,8 @@ Modules/readline.c - libedit_history_start -
Modules/socketmodule.c - accept4_works -
Modules/socketmodule.c - sock_cloexec_works -
#-----------------------
# state
##-----------------------
## state
Modules/_asynciomodule.c - cached_running_holder_tsid -
Modules/_asynciomodule.c - task_name_counter -
@@ -681,4 +679,3 @@ Modules/readline.c - completed_input_string -
Modules/rotatingtree.c - random_stream -
Modules/rotatingtree.c - random_value -
Modules/socketmodule.c - defaulttimeout -
Modules/syslogmodule.c - S_log_open -
1 filename funcname name reason
4 ##################################
5 # global objects to fix in core code ## global objects to fix in core code
6 #----------------------- ##-----------------------
7 # exported builtin types (C-API) ## exported builtin types (C-API)
8 Objects/boolobject.c - PyBool_Type -
9 Objects/bytearrayobject.c - PyByteArrayIter_Type -
10 Objects/bytearrayobject.c - PyByteArray_Type -
11 Objects/bytesobject.c - PyBytesIter_Type -
12 Objects/bytesobject.c - PyBytes_Type -
13 Objects/capsule.c - PyCapsule_Type -
102 # Not in a .h file:
103 Objects/codeobject.c - _PyLineIterator -
104 # Not in a .h file:
105 Objects/codeobject.c - _PyPositionsIterator -
106 Objects/genericaliasobject.c - _Py_GenericAliasIterType -
107 # Not in a .h file:
108 Objects/iterobject.c - _PyAnextAwaitable_Type -
109 # Not in a .h file:
126 Objects/stringlib/unicode_format.h - PyFieldNameIter_Type -
127 Objects/unicodeobject.c - EncodingMapType -
128 #Objects/unicodeobject.c - PyFieldNameIter_Type -
129 #Objects/unicodeobject.c - PyFormatterIter_Type -
130 #----------------------- ##-----------------------
131 # static builtin structseq ## static builtin structseq
132 Objects/floatobject.c - FloatInfoType -
133 Objects/longobject.c - Int_InfoType -
136 Python/sysmodule.c - FlagsType -
137 Python/sysmodule.c - Hash_InfoType -
138 Python/sysmodule.c - VersionInfoType -
139 Python/thread.c - ThreadInfoType -
140 #----------------------- ##-----------------------
141 # builtin exception types ## builtin exception types
142 Objects/exceptions.c - _PyExc_BaseException -
143 Objects/exceptions.c - _PyExc_BaseExceptionGroup -
148 Objects/exceptions.c - _PyExc_Exception -
149 Objects/exceptions.c - _PyExc_TypeError -
150 Objects/exceptions.c - _PyExc_StopAsyncIteration -
151 Objects/exceptions.c - _PyExc_StopIteration -
152 Objects/exceptions.c - _PyExc_GeneratorExit -
153 Objects/exceptions.c - _PyExc_SystemExit -
154 Objects/exceptions.c - _PyExc_KeyboardInterrupt -
155 Objects/exceptions.c - _PyExc_ImportError -
286 ##################################
287 # global non-objects to fix in core code ## global non-objects to fix in core code
288 #----------------------- ##-----------------------
289 # effectively-const but initialized lazily ## effectively-const but initialized lazily
290 # idempotent ## idempotent
291 Python/dtoa.c - p5s -
292 Objects/obmalloc.c new_arena debug_stats -
293 # others ## others
300 # other ## other
301 Objects/object.c - _Py_RefTotal -
302 Python/perf_trampoline.c - perf_status -
303 Python/perf_trampoline.c - extra_code_index -
304 Python/perf_trampoline.c - code_arena -
305 Python/perf_trampoline.c - trampoline_api -
306 Python/thread_pthread_stubs.h - py_tls_entries -
307 ##################################
308 # global objects to fix in builtin modules ## global objects to fix in builtin modules
309 #----------------------- ##-----------------------
310 # static types ## static types
311 Modules/_collectionsmodule.c - defdict_type -
312 Modules/_collectionsmodule.c - deque_type -
313 Modules/_collectionsmodule.c - dequeiter_type -
314 Modules/_collectionsmodule.c - dequereviter_type -
315 Modules/_collectionsmodule.c - tuplegetter_type -
316 Modules/_io/bufferedio.c - PyBufferedIOBase_Type -
317 Modules/_io/bufferedio.c - PyBufferedRWPair_Type -
318 Modules/_io/bufferedio.c - PyBufferedRandom_Type -
319 Modules/_io/bufferedio.c - PyBufferedReader_Type -
320 Modules/_io/bufferedio.c - PyBufferedWriter_Type -
321 Modules/_io/bytesio.c - PyBytesIO_Type -
322 Modules/_io/bytesio.c - _PyBytesIOBuffer_Type -
323 Modules/_io/fileio.c - PyFileIO_Type -
324 Modules/_io/iobase.c - PyIOBase_Type -
325 Modules/_io/iobase.c - PyRawIOBase_Type -
329 Modules/_io/textio.c - PyTextIOWrapper_Type -
330 Modules/_io/winconsoleio.c - PyWindowsConsoleIO_Type -
331 Modules/_testcapi/vectorcall.c - MethodDescriptorBase_Type -
332 Modules/_testcapi/vectorcall.c - MethodDescriptorDerived_Type -
333 Modules/_testcapi/vectorcall.c - MethodDescriptorNopGet_Type -
334 Modules/_testcapi/vectorcall.c - MethodDescriptor2_Type -
335 Modules/itertoolsmodule.c - _grouper_type -
336 Modules/itertoolsmodule.c - accumulate_type -
337 Modules/itertoolsmodule.c - batched_type -
338 Modules/itertoolsmodule.c - chain_type -
381 Modules/_tracemalloc.c - tracemalloc_peak_traced_memory -
382 Modules/_tracemalloc.c - tracemalloc_filenames -
383 Modules/_tracemalloc.c - tracemalloc_traceback -
384 Modules/_tracemalloc.c - tracemalloc_tracebacks -
385 Modules/_tracemalloc.c - tracemalloc_traces -
386 Modules/_tracemalloc.c - tracemalloc_domains -
387 Modules/_tracemalloc.c - tracemalloc_reentrant_key -
388 Modules/faulthandler.c faulthandler_dump_traceback reentrant -
389 Modules/posixmodule.c Modules/signalmodule.c - environ is_tripped -
390 Modules/signalmodule.c - is_tripped signal_global_state -
393 Modules/signalmodule.c ##################################
394 ################################## ## global objects to fix in extension modules
395 # global objects to fix in extension modules ##-----------------------
396 #----------------------- ## static types
397 # static types Modules/_asynciomodule.c - FutureIterType -
398 Modules/_asynciomodule.c - FutureIterType FutureType -
399 Modules/_asynciomodule.c - FutureType PyRunningLoopHolder_Type -
400 Modules/_asynciomodule.c - PyRunningLoopHolder_Type TaskStepMethWrapper_Type -
401 Modules/_asynciomodule.c - TaskStepMethWrapper_Type TaskType -
402 Modules/_asynciomodule.c Modules/_ctypes/_ctypes.c - TaskType DictRemover_Type -
405 Modules/_ctypes/_ctypes.c - PyCArray_Type PyCData_Type -
406 Modules/_ctypes/_ctypes.c - PyCData_Type PyCFuncPtrType_Type -
407 Modules/_ctypes/_ctypes.c - PyCFuncPtrType_Type PyCFuncPtr_Type -
408 Modules/_ctypes/_ctypes.c - PyCFuncPtr_Type PyCPointerType_Type -
409 Modules/_ctypes/_ctypes.c - PyCPointerType_Type PyCPointer_Type -
410 Modules/_ctypes/_ctypes.c - PyCPointer_Type PyCSimpleType_Type -
411 Modules/_ctypes/_ctypes.c - PyCSimpleType_Type PyCStructType_Type -
412 Modules/_ctypes/_ctypes.c - PyCStructType_Type Simple_Type -
420 Modules/_ctypes/cfield.c Modules/_ctypes/ctypes.h - PyCField_Type PyCArg_Type -
421 Modules/_ctypes/ctypes.h - PyCArg_Type PyCArrayType_Type -
422 Modules/_ctypes/ctypes.h - PyCArrayType_Type PyCArray_Type -
Modules/_ctypes/ctypes.h - PyCArray_Type -
423 Modules/_ctypes/ctypes.h - PyCData_Type -
424 Modules/_ctypes/ctypes.h - PyCField_Type -
425 Modules/_ctypes/ctypes.h - PyCFuncPtrType_Type -
427 Modules/_ctypes/ctypes.h - PyCPointerType_Type -
428 Modules/_ctypes/ctypes.h - PyCPointer_Type -
429 Modules/_ctypes/ctypes.h - PyCSimpleType_Type -
430 Modules/_ctypes/ctypes.h - PyCStgDict_Type -
431 Modules/_ctypes/ctypes.h - PyCStructType_Type -
432 Modules/_ctypes/ctypes.h - PyCThunk_Type -
433 Modules/_ctypes/ctypes.h - PyExc_ArgError -
434 Modules/_ctypes/ctypes.h - _ctypes_conversion_encoding -
435 Modules/_ctypes/ctypes.h - _ctypes_conversion_errors -
436 Modules/_ctypes/ctypes.h - _ctypes_ptrtype_cache -
505 Modules/_zoneinfo.c - io_open -
506 Modules/_zoneinfo.c - _tzpath_find_tzfile -
507 Modules/_zoneinfo.c - _common_mod -
508 #----------------------- ##-----------------------
509 # other ## other
510 # initialized once ## initialized once
511 Modules/_ctypes/_ctypes.c - _unpickle -
512 Modules/_ctypes/_ctypes.c PyCArrayType_from_ctype cache -
513 Modules/_cursesmodule.c - ModDict -
514 Modules/_datetimemodule.c datetime_strptime module -
516 Modules/_datetimemodule.c - PyDateTime_Epoch -
517 Modules/_datetimemodule.c - us_per_ms -
518 Modules/_datetimemodule.c - us_per_second -
519 Modules/_datetimemodule.c - us_per_minute -
520 Modules/_datetimemodule.c - us_per_hour -
521 Modules/_datetimemodule.c - us_per_day -
522 Modules/_datetimemodule.c - us_per_week -
527 Modules/_decimal/_decimal.c - extended_context_template -
528 Modules/_decimal/_decimal.c - round_map -
529 Modules/_decimal/_decimal.c - Rational -
530 Modules/_decimal/_decimal.c - SignalTuple -
531 Modules/arraymodule.c array_array___reduce_ex___impl array_reconstructor -
532 # state ## state
533 Modules/_asynciomodule.c - cached_running_holder -
534 Modules/_asynciomodule.c - fi_freelist -
535 Modules/_asynciomodule.c - fi_freelist_len -
536 Modules/_asynciomodule.c - all_tasks -
537 Modules/_asynciomodule.c - current_tasks -
538 Modules/_asynciomodule.c - iscoroutine_typecache -
539 Modules/_ctypes/_ctypes.c - _ctypes_ptrtype_cache -
540 Modules/_testinternalcapi.c - record_list -
541 Modules/_tkinter.c - tcl_lock -
550 #----------------------- ## initialized once
551 # initialized once ## pre-allocated buffer
552 # pre-allocated buffer Modules/nismodule.c nisproc_maplist_2 res -
553 Modules/nismodule.c Modules/pyexpat.c nisproc_maplist_2 PyUnknownEncodingHandler res template_buffer -
554 Modules/pyexpat.c ## other
555 # other Include/datetime.h - PyDateTimeAPI -
556 Include/datetime.h Modules/_asynciomodule.c - PyDateTimeAPI module_initialized -
557 Modules/_asynciomodule.c Modules/_ctypes/cfield.c - _ctypes_get_fielddesc module_initialized initialized -
558 Modules/_ctypes/cfield.c Modules/_ctypes/malloc_closure.c _ctypes_get_fielddesc - initialized _pagesize -
559 Modules/_ctypes/malloc_closure.c Modules/_cursesmodule.c - _pagesize initialised -
576 Modules/cjkcodecs/_codecs_iso2022.c - jisxcommon_encmap jisx0208_decmap -
577 Modules/cjkcodecs/_codecs_iso2022.c - jisx0208_decmap jisx0212_decmap -
578 Modules/cjkcodecs/_codecs_iso2022.c - jisx0212_decmap jisx0213_bmp_encmap -
579 Modules/cjkcodecs/_codecs_iso2022.c - jisx0213_bmp_encmap jisx0213_1_bmp_decmap -
580 Modules/cjkcodecs/_codecs_iso2022.c - jisx0213_1_bmp_decmap jisx0213_2_bmp_decmap -
581 Modules/cjkcodecs/_codecs_iso2022.c - jisx0213_2_bmp_decmap jisx0213_emp_encmap -
582 Modules/cjkcodecs/_codecs_iso2022.c - jisx0213_emp_encmap jisx0213_1_emp_decmap -
591 Modules/cjkcodecs/_codecs_iso2022.c Modules/cjkcodecs/cjkcodecs.h gb2312_init - initialized codec_list -
592 Modules/cjkcodecs/cjkcodecs.h - codec_list mapping_list -
593 Modules/cjkcodecs/cjkcodecs.h Modules/readline.c - mapping_list libedit_append_replace_history_offset -
Modules/readline.c - libedit_append_replace_history_offset -
594 Modules/readline.c - using_libedit_emulation -
595 Modules/readline.c - libedit_history_start -
596 Modules/socketmodule.c - accept4_works -
597 Modules/socketmodule.c - sock_cloexec_works -
598 #----------------------- ##-----------------------
599 # state ## state
600 Modules/_asynciomodule.c - cached_running_holder_tsid -
601 Modules/_asynciomodule.c - task_name_counter -
602 Modules/_ctypes/cfield.c - formattable -
603 Modules/_ctypes/malloc_closure.c - free_list -
604 Modules/_curses_panel.c - lop -
605 Modules/_ssl/debughelpers.c _PySSL_keylog_callback lock -
606 Modules/_tkinter.c - quitMainLoop -
607 Modules/_tkinter.c - errorInCmd -
608 Modules/_tkinter.c - Tkinter_busywaitinterval -
609 Modules/_tkinter.c - call_mutex -
648
649
650
651
652
653
654
655
679
680
681
+389 -358
View File
@@ -5,52 +5,61 @@ filename funcname name reason
##################################
# process-global resources
## process-global values - set once
# Initialization for these should be idempotent.
# These will never re-initialize (but would be idempotent).
# These are effectively const.
#-----------------------
# effectively const, set once before/during first init
##-----------------------
## process-global resources - set during first init
## indicators for resource availability/capability
Python/bootstrap_hash.c py_getrandom getrandom_works -
Python/fileutils.c - _Py_open_cloexec_works -
Python/fileutils.c set_inheritable ioctl_works -
## resource init
Python/thread.c - initialized -
Python/thread_pthread.h - condattr_monotonic -
# safe static buffer used during one-time initialization
Python/thread_pthread.h init_condattr ca -
##-----------------------
## other values (not Python-specific)
## cached computed data - set lazily (*after* first init)
# XXX Are these safe relative to write races?
Objects/longobject.c long_from_non_binary_base log_base_BASE -
Objects/longobject.c long_from_non_binary_base convwidth_base -
Objects/longobject.c long_from_non_binary_base convmultmax_base -
Objects/unicodeobject.c - bloom_linebreak -
# This is safe:
Objects/unicodeobject.c _init_global_state initialized -
##-----------------------
## other values (Python-specific)
## internal state - set before/during first init
Modules/getbuildinfo.c - buildinfo -
Modules/getbuildinfo.c - initialized -
Python/getversion.c - initialized -
Python/getversion.c - version -
#-----------------------
# effectively const, set once during first init
## public C-API - set during first init
Python/bootstrap_hash.c - _Py_HashSecret_Initialized -
Python/pyhash.c - _Py_HashSecret -
Python/thread.c - initialized -
Python/thread_pthread.h - condattr_monotonic -
# safe static buffer used during one-time initialization
Python/thread_pthread.h init_condattr ca -
# indicators for process-global resource availability/capability
Python/bootstrap_hash.c py_getrandom getrandom_works -
Python/fileutils.c - _Py_open_cloexec_works -
Python/fileutils.c set_inheritable ioctl_works -
#-----------------------
# effectively const but set once lazily (*after* first init)
Objects/longobject.c long_from_non_binary_base log_base_BASE -
Objects/longobject.c long_from_non_binary_base convwidth_base -
Objects/longobject.c long_from_non_binary_base convmultmax_base -
Objects/unicodeobject.c - bloom_linebreak -
Objects/unicodeobject.c _init_global_state initialized -
# XXX Move to _PyRuntimeState?
## internal state - set lazily (*after* first init)
# XXX Move to _PyRuntimeState (i.e. tie to init/fini cycle)?
Parser/action_helpers.c _PyPegen_dummy_name cache -
##################################
# state tied to C main() (only in main thread)
## state tied to Py_Main()
# (only in main thread)
#-----------------------
# handling C argv
##-----------------------
## handling C argv
Python/getopt.c - _PyOS_optarg -
Python/getopt.c - _PyOS_opterr -
@@ -58,8 +67,8 @@ Python/getopt.c - _PyOS_optind -
Python/getopt.c - opt_ptr -
Python/pathconfig.c - _Py_path_config -
#-----------------------
# REPL
##-----------------------
## REPL
Parser/myreadline.c - _PyOS_ReadlineLock -
Parser/myreadline.c - _PyOS_ReadlineTState -
@@ -68,28 +77,29 @@ Parser/myreadline.c - PyOS_ReadlineFunctionPointer -
##################################
# state tied to each runtime init/fini cycle
## runtime-global values - set once with each init
Python/pylifecycle.c - _PyRuntime -
Python/pylifecycle.c - runtime_initialized -
# These are effectively const.
# All uses of _PyArg_Parser are handled in c-analyzr/cpython/_analyzer.py.
##-----------------------
## set by embedders before init
# (whether directly or through a call)
#-----------------------
# effectively const once init finishes
# set by embedders before init (whether directly or through a call)
Python/initconfig.c - _Py_StandardStreamEncoding -
Python/initconfig.c - _Py_StandardStreamErrors -
# XXX This only gets cleared by Py_Main().
Python/initconfig.c - orig_argv -
# deprecated
##-----------------------
## public C-API
## deprecated
Python/preconfig.c - Py_FileSystemDefaultEncoding -
Python/preconfig.c - Py_HasFileSystemDefaultEncoding -
Python/preconfig.c - Py_FileSystemDefaultEncodeErrors -
Python/preconfig.c - _Py_HasFileSystemDefaultEncodeErrors -
# legacy config flags
## legacy config flags
Python/initconfig.c - Py_UTF8Mode -
Python/initconfig.c - Py_DebugFlag -
Python/initconfig.c - Py_VerboseFlag -
@@ -109,162 +119,243 @@ Python/initconfig.c - Py_IsolatedFlag -
Python/initconfig.c - Py_LegacyWindowsFSEncodingFlag -
Python/initconfig.c - Py_LegacyWindowsStdioFlag -
# initialized statically, customized by embedders
##-----------------------
## initialized statically, may be customized by embedders
Python/frozen.c - PyImport_FrozenModules -
Python/import.c - inittab_copy -
Python/import.c - PyImport_Inittab -
# used temporarily during init
##################################
## runtime-global state
##-----------------------
## tied to each init/fini cycle
## the consolidated runtime state
Python/pylifecycle.c - _PyRuntime -
Python/pylifecycle.c - runtime_initialized -
# All cases of _PyArg_Parser are handled in c-analyzr/cpython/_analyzer.py.
## main interp state in stdlib modules
Modules/syslogmodule.c - S_ident_o -
Modules/syslogmodule.c - S_log_open -
##-----------------------
## *not* tied to init/fini cycle
# These do not ge reset with each init/fini cycle.
# XXX These should probably be tied to init/fini. Move to _PyRuntimeState?
# special-use diagnistic state
Parser/pegen.c - memo_statistics -
##-----------------------
## one-off temporary state
# used during runtime init
Python/sysmodule.c - _preinit_warnoptions -
Python/sysmodule.c - _preinit_xoptions -
##################################
# special-use diagnistic state
Parser/pegen.c - memo_statistics -
##################################
# one-off temporary state
# This is safe enough.
# thread-safety
# XXX need race protection?
Python/pylifecycle.c _Py_FatalErrorFormat reentrant -
Python/pylifecycle.c fatal_error reentrant -
##################################
# not used (kept for compatibility)
## not significant
##-----------------------
## not used (kept for compatibility)
Python/pyfpe.c - PyFPE_counter -
##-----------------------
## should be const
# XXX Make them const.
##################################
# The analyzer should have ignored these.
# XXX Fix the analyzer.
# These are all variables that we will be leaving global.
Modules/_io/_iomodule.c - _PyIO_Module -
Modules/_sqlite/module.c - _sqlite3module -
# All module defs, type defs, etc. are handled in c-analyzr/cpython/_analyzer.py.
# All kwlist arrays are handled in c-analyzr/cpython/_analyzer.py.
# forward/extern references
# other vars that are actually constant
Include/py_curses.h - PyCurses_API -
Include/pydecimal.h - _decimal_api -
Modules/_blake2/blake2module.c - blake2b_type_spec -
Modules/_blake2/blake2module.c - blake2s_type_spec -
Modules/_io/fileio.c - _Py_open_cloexec_works -
Modules/_io/_iomodule.h - PyIOBase_Type -
Modules/_io/_iomodule.h - PyRawIOBase_Type -
Modules/_io/_iomodule.h - PyBufferedIOBase_Type -
Modules/_io/_iomodule.h - PyTextIOBase_Type -
Modules/_io/_iomodule.h - PyFileIO_Type -
Modules/_io/_iomodule.h - PyBytesIO_Type -
Modules/_io/_iomodule.h - PyStringIO_Type -
Modules/_io/_iomodule.h - PyBufferedReader_Type -
Modules/_io/_iomodule.h - PyBufferedWriter_Type -
Modules/_io/_iomodule.h - PyBufferedRWPair_Type -
Modules/_io/_iomodule.h - PyBufferedRandom_Type -
Modules/_io/_iomodule.h - PyTextIOWrapper_Type -
Modules/_io/_iomodule.h - PyIncrementalNewlineDecoder_Type -
Modules/_io/_iomodule.h - _PyBytesIOBuffer_Type -
Modules/_io/_iomodule.h - _PyIO_Module -
Modules/_io/_iomodule.h - _PyIO_str_close -
Modules/_io/_iomodule.h - _PyIO_str_closed -
Modules/_io/_iomodule.h - _PyIO_str_decode -
Modules/_io/_iomodule.h - _PyIO_str_encode -
Modules/_io/_iomodule.h - _PyIO_str_fileno -
Modules/_io/_iomodule.h - _PyIO_str_flush -
Modules/_io/_iomodule.h - _PyIO_str_getstate -
Modules/_io/_iomodule.h - _PyIO_str_isatty -
Modules/_io/_iomodule.h - _PyIO_str_newlines -
Modules/_io/_iomodule.h - _PyIO_str_nl -
Modules/_io/_iomodule.h - _PyIO_str_peek -
Modules/_io/_iomodule.h - _PyIO_str_read -
Modules/_io/_iomodule.h - _PyIO_str_read1 -
Modules/_io/_iomodule.h - _PyIO_str_readable -
Modules/_io/_iomodule.h - _PyIO_str_readall -
Modules/_io/_iomodule.h - _PyIO_str_readinto -
Modules/_io/_iomodule.h - _PyIO_str_readline -
Modules/_io/_iomodule.h - _PyIO_str_reset -
Modules/_io/_iomodule.h - _PyIO_str_seek -
Modules/_io/_iomodule.h - _PyIO_str_seekable -
Modules/_io/_iomodule.h - _PyIO_str_setstate -
Modules/_io/_iomodule.h - _PyIO_str_tell -
Modules/_io/_iomodule.h - _PyIO_str_truncate -
Modules/_io/_iomodule.h - _PyIO_str_writable -
Modules/_io/_iomodule.h - _PyIO_str_write -
Modules/_io/_iomodule.h - _PyIO_empty_str -
Modules/_io/_iomodule.h - _PyIO_empty_bytes -
Modules/_multiprocessing/multiprocessing.h - _PyMp_SemLockType -
Modules/_sqlite/module.c - _pysqlite_converters -
Modules/_sqlite/module.c - _pysqlite_enable_callback_tracebacks -
Modules/_sqlite/module.c - pysqlite_BaseTypeAdapted -
Modules/_sqlite/module.h - pysqlite_global_state -
Modules/_testcapimodule.c - _PyBytesIOBuffer_Type -
Modules/posixmodule.c - _Py_open_cloexec_works -
Objects/object.c - _Py_GenericAliasIterType -
Objects/object.c - _PyMemoryIter_Type -
Objects/object.c - _PyLineIterator -
Objects/object.c - _PyPositionsIterator -
Python/perf_trampoline.c - _Py_trampoline_func_start -
Python/perf_trampoline.c - _Py_trampoline_func_end -
Python/importdl.h - _PyImport_DynLoadFiletab -
Include/internal/pycore_blocks_output_buffer.h - BUFFER_BLOCK_SIZE -
Modules/_csv.c - quote_styles -
Modules/_ctypes/cfield.c - ffi_type_double -
Modules/_ctypes/cfield.c - ffi_type_float -
Modules/_ctypes/cfield.c - ffi_type_longdouble -
Modules/_ctypes/cfield.c - ffi_type_pointer -
Modules/_ctypes/cfield.c - ffi_type_sint16 -
Modules/_ctypes/cfield.c - ffi_type_sint32 -
Modules/_ctypes/cfield.c - ffi_type_sint64 -
Modules/_ctypes/cfield.c - ffi_type_sint8 -
Modules/_ctypes/cfield.c - ffi_type_uint16 -
Modules/_ctypes/cfield.c - ffi_type_uint32 -
Modules/_ctypes/cfield.c - ffi_type_uint64 -
Modules/_ctypes/cfield.c - ffi_type_uint8 -
Modules/_ctypes/cfield.c - ffi_type_void -
Modules/_datetimemodule.c - epoch -
Modules/_datetimemodule.c - max_fold_seconds -
Modules/_datetimemodule.c datetime_isoformat specs -
Modules/_datetimemodule.c parse_hh_mm_ss_ff correction -
Modules/_datetimemodule.c time_isoformat specs -
Modules/_decimal/_decimal.c - cond_map -
Modules/_decimal/_decimal.c - dec_signal_string -
Modules/_decimal/_decimal.c - dflt_ctx -
Modules/_decimal/_decimal.c - int_constants -
Modules/_decimal/_decimal.c - invalid_rounding_err -
Modules/_decimal/_decimal.c - invalid_signals_err -
Modules/_decimal/_decimal.c - signal_map -
Modules/_decimal/_decimal.c - ssize_constants -
Modules/_elementtree.c - ExpatMemoryHandler -
Modules/_io/_iomodule.c - static_types -
Modules/_io/textio.c - encodefuncs -
Modules/_io/winconsoleio.c - _PyWindowsConsoleIO_Type -
Modules/_localemodule.c - langinfo_constants -
Modules/_pickle.c - READ_WHOLE_LINE -
Modules/_sqlite/module.c - error_codes -
Modules/_sre/sre.c pattern_repr flag_names -
# XXX I'm pretty sure this is actually constant:
Modules/_sre/sre_targets.h - sre_targets -
Modules/_sre.c pattern_repr flag_names -
Modules/_struct.c - bigendian_table -
Modules/_struct.c - lilendian_table -
Modules/_tkinter.c - state_key -
Modules/_xxsubinterpretersmodule.c - _channelid_end_recv -
Modules/_xxsubinterpretersmodule.c - _channelid_end_send -
Modules/_zoneinfo.c - DAYS_BEFORE_MONTH -
Modules/_zoneinfo.c - DAYS_IN_MONTH -
Modules/arraymodule.c - descriptors -
Modules/arraymodule.c - emptybuf -
Modules/cjkcodecs/_codecs_cn.c - _mapping_list -
Modules/cjkcodecs/_codecs_cn.c - mapping_list -
Modules/cjkcodecs/_codecs_cn.c - _codec_list -
Modules/cjkcodecs/_codecs_cn.c - codec_list -
Modules/cjkcodecs/_codecs_hk.c - big5hkscs_pairenc_table -
Modules/cjkcodecs/_codecs_hk.c - _mapping_list -
Modules/cjkcodecs/_codecs_hk.c - mapping_list -
Modules/cjkcodecs/_codecs_hk.c - _codec_list -
Modules/cjkcodecs/_codecs_hk.c - codec_list -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_kr_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_1_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_2_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_2004_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_3_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_ext_config -
Modules/cjkcodecs/_codecs_iso2022.c - _mapping_list -
Modules/cjkcodecs/_codecs_iso2022.c - mapping_list -
Modules/cjkcodecs/_codecs_iso2022.c - _codec_list -
Modules/cjkcodecs/_codecs_iso2022.c - codec_list -
Modules/cjkcodecs/_codecs_jp.c - _mapping_list -
Modules/cjkcodecs/_codecs_jp.c - mapping_list -
Modules/cjkcodecs/_codecs_jp.c - _codec_list -
Modules/cjkcodecs/_codecs_jp.c - codec_list -
Modules/cjkcodecs/_codecs_kr.c - u2johabjamo -
Modules/cjkcodecs/_codecs_kr.c - _mapping_list -
Modules/cjkcodecs/_codecs_kr.c - mapping_list -
Modules/cjkcodecs/_codecs_kr.c - _codec_list -
Modules/cjkcodecs/_codecs_kr.c - codec_list -
Modules/cjkcodecs/_codecs_tw.c - _mapping_list -
Modules/cjkcodecs/_codecs_tw.c - mapping_list -
Modules/cjkcodecs/_codecs_tw.c - _codec_list -
Modules/cjkcodecs/_codecs_tw.c - codec_list -
Modules/cjkcodecs/cjkcodecs.h - __methods -
Modules/cmathmodule.c - acos_special_values -
Modules/cmathmodule.c - acosh_special_values -
Modules/cmathmodule.c - asinh_special_values -
Modules/cmathmodule.c - atanh_special_values -
Modules/cmathmodule.c - cosh_special_values -
Modules/cmathmodule.c - exp_special_values -
Modules/cmathmodule.c - log_special_values -
Modules/cmathmodule.c - rect_special_values -
Modules/cmathmodule.c - sinh_special_values -
Modules/cmathmodule.c - sqrt_special_values -
Modules/cmathmodule.c - tanh_special_values -
Modules/config.c - _PyImport_Inittab -
Modules/faulthandler.c - faulthandler_handlers -
Modules/getnameinfo.c - gni_afdl -
Modules/nismodule.c - TIMEOUT -
Modules/nismodule.c - aliases -
Modules/ossaudiodev.c - control_labels -
Modules/ossaudiodev.c - control_names -
Modules/posixmodule.c os_getxattr_impl buffer_sizes -
Modules/posixmodule.c os_listxattr_impl buffer_sizes -
Modules/posixmodule.c - posix_constants_confstr -
Modules/posixmodule.c - posix_constants_pathconf -
Modules/posixmodule.c - posix_constants_sysconf -
Modules/pyexpat.c - ExpatMemoryHandler -
Modules/pyexpat.c - error_info_of -
Modules/pyexpat.c - handler_info -
Modules/termios.c - termios_constants -
Modules/timemodule.c init_timezone YEAR -
Objects/bytearrayobject.c - _PyByteArray_empty_string -
Objects/complexobject.c - c_1 -
Objects/exceptions.c - static_exceptions -
Objects/genobject.c - ASYNC_GEN_IGNORED_EXIT_MSG -
Objects/genobject.c - NON_INIT_CORO_MSG -
Objects/longobject.c - _PyLong_DigitValue -
Objects/object.c - _Py_SwappedOp -
Objects/object.c - _Py_abstract_hack -
Objects/object.c - static_types -
Objects/obmalloc.c - _PyMem -
Objects/obmalloc.c - _PyMem_Debug -
Objects/obmalloc.c - _PyMem_Raw -
Objects/obmalloc.c - _PyObject -
Objects/obmalloc.c - usedpools -
Objects/typeobject.c - name_op -
Objects/typeobject.c - slotdefs -
Objects/unicodeobject.c - stripfuncnames -
Objects/unicodeobject.c - utf7_category -
Objects/unicodeobject.c unicode_decode_call_errorhandler_wchar argparse -
Objects/unicodeobject.c unicode_decode_call_errorhandler_writer argparse -
Objects/unicodeobject.c unicode_encode_call_errorhandler argparse -
Objects/unicodeobject.c unicode_translate_call_errorhandler argparse -
Parser/parser.c - reserved_keywords -
Parser/parser.c - soft_keywords -
Parser/tokenizer.c - type_comment_prefix -
Python/ast_opt.c fold_unaryop ops -
Python/ceval.c - binary_ops -
Python/codecs.c - Py_hexdigits -
Python/codecs.c - ucnhash_capi -
Python/codecs.c _PyCodecRegistry_Init methods -
Python/compile.c - NO_LABEL -
Python/compile.c - NO_LOCATION -
Python/dynload_shlib.c - _PyImport_DynLoadFiletab -
Python/dynload_stub.c - _PyImport_DynLoadFiletab -
Python/frozen.c - aliases -
Python/frozen.c - bootstrap_modules -
Python/frozen.c - stdlib_modules -
Python/frozen.c - test_modules -
Python/frozen.c - _PyImport_FrozenAliases -
Python/frozen.c - _PyImport_FrozenBootstrap -
Python/frozen.c - _PyImport_FrozenStdlib -
Python/frozen.c - _PyImport_FrozenTest -
Python/getopt.c - longopts -
Python/import.c - _PyImport_Inittab -
Python/import.c - _PySys_ImplCacheTag -
Python/opcode_targets.h - opcode_targets -
Python/perf_trampoline.c - _Py_perfmap_callbacks -
Python/pyhash.c - PyHash_Func -
Python/pylifecycle.c - _C_LOCALE_WARNING -
Python/pylifecycle.c - _PyOS_mystrnicmp_hack -
Python/pylifecycle.c - _TARGET_LOCALES -
Python/pystate.c - initial -
Python/specialize.c - adaptive_opcodes -
Python/specialize.c - cache_requirements -
Python/specialize.c - compare_masks -
Python/stdlib_module_names.h - _Py_stdlib_module_names -
Python/sysmodule.c - _PySys_ImplCacheTag -
Python/sysmodule.c - _PySys_ImplName -
Python/sysmodule.c - whatstrings -
Modules/expat/xmlrole.c - prolog0 -
Modules/expat/xmlrole.c - prolog1 -
Modules/expat/xmlrole.c - prolog2 -
Modules/expat/xmlrole.c - doctype0 -
Modules/expat/xmlrole.c - doctype1 -
Modules/expat/xmlrole.c - doctype2 -
Modules/expat/xmlrole.c - doctype3 -
Modules/expat/xmlrole.c - doctype4 -
Modules/expat/xmlrole.c - doctype5 -
Modules/expat/xmlrole.c - internalSubset -
Modules/expat/xmlrole.c - entity0 -
Modules/expat/xmlrole.c - entity1 -
Modules/expat/xmlrole.c - entity2 -
Modules/expat/xmlrole.c - entity3 -
Modules/expat/xmlrole.c - entity4 -
Modules/expat/xmlrole.c - entity5 -
Modules/expat/xmlrole.c - entity6 -
Modules/expat/xmlrole.c - entity7 -
Modules/expat/xmlrole.c - entity8 -
Modules/expat/xmlrole.c - entity9 -
Modules/expat/xmlrole.c - entity10 -
Modules/expat/xmlrole.c - notation0 -
Modules/expat/xmlrole.c - notation1 -
Modules/expat/xmlrole.c - notation2 -
Modules/expat/xmlrole.c - notation3 -
Modules/expat/xmlrole.c - notation4 -
Modules/expat/xmlrole.c - attlist0 -
Modules/expat/xmlrole.c - attlist1 -
Modules/expat/xmlrole.c - attlist2 -
Modules/expat/xmlrole.c - attlist3 -
Modules/expat/xmlrole.c - attlist4 -
Modules/expat/xmlrole.c - attlist5 -
Modules/expat/xmlrole.c - attlist6 -
Modules/expat/xmlrole.c - attlist7 -
Modules/expat/xmlrole.c - attlist8 -
Modules/expat/xmlrole.c - attlist9 -
Modules/expat/xmlrole.c - element0 -
Modules/expat/xmlrole.c - element1 -
Modules/expat/xmlrole.c - element2 -
Modules/expat/xmlrole.c - element3 -
Modules/expat/xmlrole.c - element4 -
Modules/expat/xmlrole.c - element5 -
Modules/expat/xmlrole.c - element6 -
Modules/expat/xmlrole.c - element7 -
Modules/expat/xmlrole.c - externalSubset0 -
Modules/expat/xmlrole.c - externalSubset1 -
Modules/expat/xmlrole.c - condSect0 -
Modules/expat/xmlrole.c - condSect1 -
Modules/expat/xmlrole.c - condSect2 -
Modules/expat/xmlrole.c - declClose -
Modules/expat/xmlrole.c - error -
##################################
# test code
##-----------------------
## test code
Modules/_ctypes/_ctypes_test.c - _ctypes_test_slots -
Modules/_ctypes/_ctypes_test.c - _ctypes_testmodule -
@@ -464,185 +555,125 @@ Modules/_xxtestfuzz/fuzzer.c LLVMFuzzerTestOneInput SRE_MATCH_INITIALIZED -
Modules/_xxtestfuzz/fuzzer.c LLVMFuzzerTestOneInput STRUCT_UNPACK_INITIALIZED -
Modules/_xxtestfuzz/fuzzer.c LLVMFuzzerTestOneInput AST_LITERAL_EVAL_INITIALIZED -
##-----------------------
## the analyzer should have ignored these
# XXX Fix the analyzer.
##################################
# should be const
# XXX Make them const.
## forward/extern references
Include/py_curses.h - PyCurses_API -
Include/pydecimal.h - _decimal_api -
Modules/_blake2/blake2module.c - blake2b_type_spec -
Modules/_blake2/blake2module.c - blake2s_type_spec -
Modules/_io/fileio.c - _Py_open_cloexec_works -
Modules/_io/_iomodule.h - PyIOBase_Type -
Modules/_io/_iomodule.h - PyRawIOBase_Type -
Modules/_io/_iomodule.h - PyBufferedIOBase_Type -
Modules/_io/_iomodule.h - PyTextIOBase_Type -
Modules/_io/_iomodule.h - PyFileIO_Type -
Modules/_io/_iomodule.h - PyBytesIO_Type -
Modules/_io/_iomodule.h - PyStringIO_Type -
Modules/_io/_iomodule.h - PyBufferedReader_Type -
Modules/_io/_iomodule.h - PyBufferedWriter_Type -
Modules/_io/_iomodule.h - PyBufferedRWPair_Type -
Modules/_io/_iomodule.h - PyBufferedRandom_Type -
Modules/_io/_iomodule.h - PyTextIOWrapper_Type -
Modules/_io/_iomodule.h - PyIncrementalNewlineDecoder_Type -
Modules/_io/_iomodule.h - _PyBytesIOBuffer_Type -
Modules/_io/_iomodule.h - _PyIO_Module -
Modules/_io/_iomodule.h - _PyIO_str_close -
Modules/_io/_iomodule.h - _PyIO_str_closed -
Modules/_io/_iomodule.h - _PyIO_str_decode -
Modules/_io/_iomodule.h - _PyIO_str_encode -
Modules/_io/_iomodule.h - _PyIO_str_fileno -
Modules/_io/_iomodule.h - _PyIO_str_flush -
Modules/_io/_iomodule.h - _PyIO_str_getstate -
Modules/_io/_iomodule.h - _PyIO_str_isatty -
Modules/_io/_iomodule.h - _PyIO_str_newlines -
Modules/_io/_iomodule.h - _PyIO_str_nl -
Modules/_io/_iomodule.h - _PyIO_str_peek -
Modules/_io/_iomodule.h - _PyIO_str_read -
Modules/_io/_iomodule.h - _PyIO_str_read1 -
Modules/_io/_iomodule.h - _PyIO_str_readable -
Modules/_io/_iomodule.h - _PyIO_str_readall -
Modules/_io/_iomodule.h - _PyIO_str_readinto -
Modules/_io/_iomodule.h - _PyIO_str_readline -
Modules/_io/_iomodule.h - _PyIO_str_reset -
Modules/_io/_iomodule.h - _PyIO_str_seek -
Modules/_io/_iomodule.h - _PyIO_str_seekable -
Modules/_io/_iomodule.h - _PyIO_str_setstate -
Modules/_io/_iomodule.h - _PyIO_str_tell -
Modules/_io/_iomodule.h - _PyIO_str_truncate -
Modules/_io/_iomodule.h - _PyIO_str_writable -
Modules/_io/_iomodule.h - _PyIO_str_write -
Modules/_io/_iomodule.h - _PyIO_empty_str -
Modules/_io/_iomodule.h - _PyIO_empty_bytes -
Modules/_multiprocessing/multiprocessing.h - _PyMp_SemLockType -
Modules/_sqlite/module.c - _pysqlite_converters -
Modules/_sqlite/module.c - _pysqlite_enable_callback_tracebacks -
Modules/_sqlite/module.c - pysqlite_BaseTypeAdapted -
Modules/_sqlite/module.h - pysqlite_global_state -
Modules/_testcapimodule.c - _PyBytesIOBuffer_Type -
Modules/posixmodule.c - _Py_open_cloexec_works -
Modules/posixmodule.c - environ -
Objects/object.c - _Py_GenericAliasIterType -
Objects/object.c - _PyMemoryIter_Type -
Objects/object.c - _PyLineIterator -
Objects/object.c - _PyPositionsIterator -
Python/perf_trampoline.c - _Py_trampoline_func_start -
Python/perf_trampoline.c - _Py_trampoline_func_end -
Python/importdl.h - _PyImport_DynLoadFiletab -
Modules/expat/xmlrole.c - prolog0 -
Modules/expat/xmlrole.c - prolog1 -
Modules/expat/xmlrole.c - prolog2 -
Modules/expat/xmlrole.c - doctype0 -
Modules/expat/xmlrole.c - doctype1 -
Modules/expat/xmlrole.c - doctype2 -
Modules/expat/xmlrole.c - doctype3 -
Modules/expat/xmlrole.c - doctype4 -
Modules/expat/xmlrole.c - doctype5 -
Modules/expat/xmlrole.c - internalSubset -
Modules/expat/xmlrole.c - entity0 -
Modules/expat/xmlrole.c - entity1 -
Modules/expat/xmlrole.c - entity2 -
Modules/expat/xmlrole.c - entity3 -
Modules/expat/xmlrole.c - entity4 -
Modules/expat/xmlrole.c - entity5 -
Modules/expat/xmlrole.c - entity6 -
Modules/expat/xmlrole.c - entity7 -
Modules/expat/xmlrole.c - entity8 -
Modules/expat/xmlrole.c - entity9 -
Modules/expat/xmlrole.c - entity10 -
Modules/expat/xmlrole.c - notation0 -
Modules/expat/xmlrole.c - notation1 -
Modules/expat/xmlrole.c - notation2 -
Modules/expat/xmlrole.c - notation3 -
Modules/expat/xmlrole.c - notation4 -
Modules/expat/xmlrole.c - attlist0 -
Modules/expat/xmlrole.c - attlist1 -
Modules/expat/xmlrole.c - attlist2 -
Modules/expat/xmlrole.c - attlist3 -
Modules/expat/xmlrole.c - attlist4 -
Modules/expat/xmlrole.c - attlist5 -
Modules/expat/xmlrole.c - attlist6 -
Modules/expat/xmlrole.c - attlist7 -
Modules/expat/xmlrole.c - attlist8 -
Modules/expat/xmlrole.c - attlist9 -
Modules/expat/xmlrole.c - element0 -
Modules/expat/xmlrole.c - element1 -
Modules/expat/xmlrole.c - element2 -
Modules/expat/xmlrole.c - element3 -
Modules/expat/xmlrole.c - element4 -
Modules/expat/xmlrole.c - element5 -
Modules/expat/xmlrole.c - element6 -
Modules/expat/xmlrole.c - element7 -
Modules/expat/xmlrole.c - externalSubset0 -
Modules/expat/xmlrole.c - externalSubset1 -
Modules/expat/xmlrole.c - condSect0 -
Modules/expat/xmlrole.c - condSect1 -
Modules/expat/xmlrole.c - condSect2 -
Modules/expat/xmlrole.c - declClose -
Modules/expat/xmlrole.c - error -
# These are all variables that we will be leaving global.
# All module defs, type defs, etc. are handled in c-analyzr/cpython/_analyzer.py.
# All kwlist arrays are handled in c-analyzr/cpython/_analyzer.py.
#-----------------------
# other vars that are actually constant
Include/internal/pycore_blocks_output_buffer.h - BUFFER_BLOCK_SIZE -
Modules/_csv.c - quote_styles -
Modules/_ctypes/cfield.c - ffi_type_double -
Modules/_ctypes/cfield.c - ffi_type_float -
Modules/_ctypes/cfield.c - ffi_type_longdouble -
Modules/_ctypes/cfield.c - ffi_type_pointer -
Modules/_ctypes/cfield.c - ffi_type_sint16 -
Modules/_ctypes/cfield.c - ffi_type_sint32 -
Modules/_ctypes/cfield.c - ffi_type_sint64 -
Modules/_ctypes/cfield.c - ffi_type_sint8 -
Modules/_ctypes/cfield.c - ffi_type_uint16 -
Modules/_ctypes/cfield.c - ffi_type_uint32 -
Modules/_ctypes/cfield.c - ffi_type_uint64 -
Modules/_ctypes/cfield.c - ffi_type_uint8 -
Modules/_ctypes/cfield.c - ffi_type_void -
Modules/_datetimemodule.c - epoch -
Modules/_datetimemodule.c - max_fold_seconds -
Modules/_datetimemodule.c datetime_isoformat specs -
Modules/_datetimemodule.c parse_hh_mm_ss_ff correction -
Modules/_datetimemodule.c time_isoformat specs -
Modules/_decimal/_decimal.c - cond_map -
Modules/_decimal/_decimal.c - dec_signal_string -
Modules/_decimal/_decimal.c - dflt_ctx -
Modules/_decimal/_decimal.c - int_constants -
Modules/_decimal/_decimal.c - invalid_rounding_err -
Modules/_decimal/_decimal.c - invalid_signals_err -
Modules/_decimal/_decimal.c - signal_map -
Modules/_decimal/_decimal.c - ssize_constants -
Modules/_elementtree.c - ExpatMemoryHandler -
Modules/_io/_iomodule.c - static_types -
Modules/_io/textio.c - encodefuncs -
Modules/_io/winconsoleio.c - _PyWindowsConsoleIO_Type -
Modules/_localemodule.c - langinfo_constants -
Modules/_pickle.c - READ_WHOLE_LINE -
Modules/_sqlite/module.c - error_codes -
Modules/_sre/sre.c pattern_repr flag_names -
# XXX I'm pretty sure this is actually constant:
Modules/_sre/sre_targets.h - sre_targets -
Modules/_sre.c pattern_repr flag_names -
Modules/_struct.c - bigendian_table -
Modules/_struct.c - lilendian_table -
Modules/_tkinter.c - state_key -
Modules/_xxsubinterpretersmodule.c - _channelid_end_recv -
Modules/_xxsubinterpretersmodule.c - _channelid_end_send -
Modules/_zoneinfo.c - DAYS_BEFORE_MONTH -
Modules/_zoneinfo.c - DAYS_IN_MONTH -
Modules/arraymodule.c - descriptors -
Modules/arraymodule.c - emptybuf -
Modules/cjkcodecs/_codecs_cn.c - _mapping_list -
Modules/cjkcodecs/_codecs_cn.c - mapping_list -
Modules/cjkcodecs/_codecs_cn.c - _codec_list -
Modules/cjkcodecs/_codecs_cn.c - codec_list -
Modules/cjkcodecs/_codecs_hk.c - big5hkscs_pairenc_table -
Modules/cjkcodecs/_codecs_hk.c - _mapping_list -
Modules/cjkcodecs/_codecs_hk.c - mapping_list -
Modules/cjkcodecs/_codecs_hk.c - _codec_list -
Modules/cjkcodecs/_codecs_hk.c - codec_list -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_kr_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_1_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_2_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_2004_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_3_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_ext_config -
Modules/cjkcodecs/_codecs_iso2022.c - _mapping_list -
Modules/cjkcodecs/_codecs_iso2022.c - mapping_list -
Modules/cjkcodecs/_codecs_iso2022.c - _codec_list -
Modules/cjkcodecs/_codecs_iso2022.c - codec_list -
Modules/cjkcodecs/_codecs_jp.c - _mapping_list -
Modules/cjkcodecs/_codecs_jp.c - mapping_list -
Modules/cjkcodecs/_codecs_jp.c - _codec_list -
Modules/cjkcodecs/_codecs_jp.c - codec_list -
Modules/cjkcodecs/_codecs_kr.c - u2johabjamo -
Modules/cjkcodecs/_codecs_kr.c - _mapping_list -
Modules/cjkcodecs/_codecs_kr.c - mapping_list -
Modules/cjkcodecs/_codecs_kr.c - _codec_list -
Modules/cjkcodecs/_codecs_kr.c - codec_list -
Modules/cjkcodecs/_codecs_tw.c - _mapping_list -
Modules/cjkcodecs/_codecs_tw.c - mapping_list -
Modules/cjkcodecs/_codecs_tw.c - _codec_list -
Modules/cjkcodecs/_codecs_tw.c - codec_list -
Modules/cjkcodecs/cjkcodecs.h - __methods -
Modules/cmathmodule.c - acos_special_values -
Modules/cmathmodule.c - acosh_special_values -
Modules/cmathmodule.c - asinh_special_values -
Modules/cmathmodule.c - atanh_special_values -
Modules/cmathmodule.c - cosh_special_values -
Modules/cmathmodule.c - exp_special_values -
Modules/cmathmodule.c - log_special_values -
Modules/cmathmodule.c - rect_special_values -
Modules/cmathmodule.c - sinh_special_values -
Modules/cmathmodule.c - sqrt_special_values -
Modules/cmathmodule.c - tanh_special_values -
Modules/config.c - _PyImport_Inittab -
Modules/faulthandler.c - faulthandler_handlers -
Modules/getnameinfo.c - gni_afdl -
Modules/nismodule.c - TIMEOUT -
Modules/nismodule.c - aliases -
Modules/ossaudiodev.c - control_labels -
Modules/ossaudiodev.c - control_names -
Modules/posixmodule.c os_getxattr_impl buffer_sizes -
Modules/posixmodule.c os_listxattr_impl buffer_sizes -
Modules/posixmodule.c - posix_constants_confstr -
Modules/posixmodule.c - posix_constants_pathconf -
Modules/posixmodule.c - posix_constants_sysconf -
Modules/pyexpat.c - ExpatMemoryHandler -
Modules/pyexpat.c - error_info_of -
Modules/pyexpat.c - handler_info -
Modules/termios.c - termios_constants -
Modules/timemodule.c init_timezone YEAR -
Objects/bytearrayobject.c - _PyByteArray_empty_string -
Objects/complexobject.c - c_1 -
Objects/exceptions.c - static_exceptions -
Objects/genobject.c - ASYNC_GEN_IGNORED_EXIT_MSG -
Objects/genobject.c - NON_INIT_CORO_MSG -
Objects/longobject.c - _PyLong_DigitValue -
Objects/object.c - _Py_SwappedOp -
Objects/object.c - _Py_abstract_hack -
Objects/object.c - static_types -
Objects/obmalloc.c - _PyMem -
Objects/obmalloc.c - _PyMem_Debug -
Objects/obmalloc.c - _PyMem_Raw -
Objects/obmalloc.c - _PyObject -
Objects/obmalloc.c - usedpools -
Objects/typeobject.c - name_op -
Objects/typeobject.c - slotdefs -
Objects/unicodeobject.c - stripfuncnames -
Objects/unicodeobject.c - utf7_category -
Objects/unicodeobject.c unicode_decode_call_errorhandler_wchar argparse -
Objects/unicodeobject.c unicode_decode_call_errorhandler_writer argparse -
Objects/unicodeobject.c unicode_encode_call_errorhandler argparse -
Objects/unicodeobject.c unicode_translate_call_errorhandler argparse -
Parser/parser.c - reserved_keywords -
Parser/parser.c - soft_keywords -
Parser/tokenizer.c - type_comment_prefix -
Python/ast_opt.c fold_unaryop ops -
Python/ceval.c - binary_ops -
Python/codecs.c - Py_hexdigits -
Python/codecs.c - ucnhash_capi -
Python/codecs.c _PyCodecRegistry_Init methods -
Python/compile.c - NO_LABEL -
Python/compile.c - NO_LOCATION -
Python/dynload_shlib.c - _PyImport_DynLoadFiletab -
Python/dynload_stub.c - _PyImport_DynLoadFiletab -
Python/frozen.c - aliases -
Python/frozen.c - bootstrap_modules -
Python/frozen.c - stdlib_modules -
Python/frozen.c - test_modules -
Python/frozen.c - _PyImport_FrozenAliases -
Python/frozen.c - _PyImport_FrozenBootstrap -
Python/frozen.c - _PyImport_FrozenStdlib -
Python/frozen.c - _PyImport_FrozenTest -
Python/getopt.c - longopts -
Python/import.c - _PyImport_Inittab -
Python/import.c - _PySys_ImplCacheTag -
Python/opcode_targets.h - opcode_targets -
Python/perf_trampoline.c - _Py_perfmap_callbacks -
Python/pyhash.c - PyHash_Func -
Python/pylifecycle.c - _C_LOCALE_WARNING -
Python/pylifecycle.c - _PyOS_mystrnicmp_hack -
Python/pylifecycle.c - _TARGET_LOCALES -
Python/pystate.c - initial -
Python/specialize.c - adaptive_opcodes -
Python/specialize.c - cache_requirements -
Python/specialize.c - compare_masks -
Python/stdlib_module_names.h - _Py_stdlib_module_names -
Python/sysmodule.c - _PySys_ImplCacheTag -
Python/sysmodule.c - _PySys_ImplName -
Python/sysmodule.c - whatstrings -
## other
Modules/_io/_iomodule.c - _PyIO_Module -
Modules/_sqlite/module.c - _sqlite3module -
1 filename funcname name reason
5 # process-global resources ## process-global values - set once
6 # Initialization for these should be idempotent. # These will never re-initialize (but would be idempotent).
7 #----------------------- # These are effectively const.
8 # effectively const, set once before/during first init ##-----------------------
9 Modules/getbuildinfo.c ## process-global resources - set during first init
10 Modules/getbuildinfo.c ## indicators for resource availability/capability
11 Python/bootstrap_hash.c py_getrandom getrandom_works -
12 Python/getversion.c Python/fileutils.c - initialized _Py_open_cloexec_works -
13 Python/getversion.c Python/fileutils.c - set_inheritable version ioctl_works -
14 #----------------------- ## resource init
15 # effectively const, set once during first init Python/thread.c - initialized -
16 Python/thread_pthread.h - condattr_monotonic -
17 # safe static buffer used during one-time initialization
18 Python/thread_pthread.h init_condattr ca -
19 ##-----------------------
20 ## other values (not Python-specific)
21 ## cached computed data - set lazily (*after* first init)
22 # XXX Are these safe relative to write races?
23 Objects/longobject.c long_from_non_binary_base log_base_BASE -
24 Objects/longobject.c long_from_non_binary_base convwidth_base -
25 Objects/longobject.c long_from_non_binary_base convmultmax_base -
26 Objects/unicodeobject.c - bloom_linebreak -
27 # This is safe:
28 Objects/unicodeobject.c _init_global_state initialized -
29 ##-----------------------
30 ## other values (Python-specific)
31 ## internal state - set before/during first init
32 Modules/getbuildinfo.c - buildinfo -
33 Modules/getbuildinfo.c - initialized -
34 Python/getversion.c - initialized -
35 Python/getversion.c - version -
36 ## public C-API - set during first init
37 Python/bootstrap_hash.c - _Py_HashSecret_Initialized -
38 Python/pyhash.c - _Py_HashSecret -
39 ## internal state - set lazily (*after* first init)
40 # XXX Move to _PyRuntimeState (i.e. tie to init/fini cycle)?
41 Parser/action_helpers.c _PyPegen_dummy_name cache -
42 ##################################
43 Python/bootstrap_hash.c ## state tied to Py_Main()
44 Python/pyhash.c # (only in main thread)
45 Python/thread.c ##-----------------------
46 Python/thread_pthread.h ## handling C argv
47 # safe static buffer used during one-time initialization Python/getopt.c - _PyOS_optarg -
48 Python/thread_pthread.h Python/getopt.c init_condattr - ca _PyOS_opterr -
# indicators for process-global resource availability/capability
Python/bootstrap_hash.c py_getrandom getrandom_works -
49 Python/fileutils.c Python/getopt.c - _Py_open_cloexec_works _PyOS_optind -
50 Python/fileutils.c Python/getopt.c set_inheritable - ioctl_works opt_ptr -
#-----------------------
# effectively const but set once lazily (*after* first init)
51 Objects/longobject.c Python/pathconfig.c long_from_non_binary_base - log_base_BASE _Py_path_config -
52 Objects/longobject.c ##-----------------------
53 Objects/longobject.c ## REPL
Objects/unicodeobject.c - bloom_linebreak -
Objects/unicodeobject.c _init_global_state initialized -
# XXX Move to _PyRuntimeState?
Parser/action_helpers.c _PyPegen_dummy_name cache -
##################################
# state tied to C main() (only in main thread)
#-----------------------
# handling C argv
Python/getopt.c - _PyOS_optarg -
Python/getopt.c - _PyOS_opterr -
Python/getopt.c - _PyOS_optind -
Python/getopt.c - opt_ptr -
Python/pathconfig.c - _Py_path_config -
#-----------------------
# REPL
Parser/myreadline.c - _PyOS_ReadlineLock -
54 Parser/myreadline.c - _PyOS_ReadlineTState _PyOS_ReadlineLock -
55 Parser/myreadline.c - PyOS_InputHook _PyOS_ReadlineTState -
56 Parser/myreadline.c - PyOS_ReadlineFunctionPointer PyOS_InputHook -
57 ################################## Parser/myreadline.c - PyOS_ReadlineFunctionPointer -
58 # state tied to each runtime init/fini cycle ##################################
59 ## runtime-global values - set once with each init
60 Python/pylifecycle.c # These are effectively const.
61 Python/pylifecycle.c ##-----------------------
62 # All uses of _PyArg_Parser are handled in c-analyzr/cpython/_analyzer.py. ## set by embedders before init
63 #----------------------- # (whether directly or through a call)
64 # effectively const once init finishes Python/initconfig.c - _Py_StandardStreamEncoding -
65 # set by embedders before init (whether directly or through a call) Python/initconfig.c - _Py_StandardStreamErrors -
67 Python/initconfig.c - _Py_StandardStreamErrors orig_argv -
68 Python/initconfig.c ##-----------------------
69 # deprecated ## public C-API
70 Python/preconfig.c ## deprecated
71 Python/preconfig.c - Py_HasFileSystemDefaultEncoding Py_FileSystemDefaultEncoding -
72 Python/preconfig.c - Py_FileSystemDefaultEncodeErrors Py_HasFileSystemDefaultEncoding -
73 Python/preconfig.c - _Py_HasFileSystemDefaultEncodeErrors Py_FileSystemDefaultEncodeErrors -
74 # legacy config flags Python/preconfig.c - _Py_HasFileSystemDefaultEncodeErrors -
77 Python/initconfig.c - Py_VerboseFlag Py_DebugFlag -
78 Python/initconfig.c - Py_QuietFlag Py_VerboseFlag -
79 Python/initconfig.c - Py_InteractiveFlag Py_QuietFlag -
80 Python/initconfig.c - Py_InspectFlag Py_InteractiveFlag -
81 Python/initconfig.c - Py_OptimizeFlag Py_InspectFlag -
82 Python/initconfig.c - Py_NoSiteFlag Py_OptimizeFlag -
Python/initconfig.c - Py_BytesWarningFlag -
83 Python/initconfig.c - Py_FrozenFlag Py_NoSiteFlag -
84 Python/initconfig.c - Py_IgnoreEnvironmentFlag Py_BytesWarningFlag -
85 Python/initconfig.c - Py_FrozenFlag -
86 Python/initconfig.c - Py_IgnoreEnvironmentFlag -
87 Python/initconfig.c - Py_DontWriteBytecodeFlag -
Python/initconfig.c - Py_NoUserSiteDirectory -
Python/initconfig.c - Py_UnbufferedStdioFlag -
Python/initconfig.c - Py_HashRandomizationFlag -
Python/initconfig.c - Py_IsolatedFlag -
88 Python/initconfig.c - Py_LegacyWindowsFSEncodingFlag Py_NoUserSiteDirectory -
89 Python/initconfig.c - Py_LegacyWindowsStdioFlag Py_UnbufferedStdioFlag -
90 Python/initconfig.c - Py_HashRandomizationFlag -
91 # initialized statically, customized by embedders Python/initconfig.c - Py_IsolatedFlag -
92 Python/frozen.c Python/initconfig.c - PyImport_FrozenModules Py_LegacyWindowsFSEncodingFlag -
93 Python/import.c Python/initconfig.c - inittab_copy Py_LegacyWindowsStdioFlag -
94 ##-----------------------
95 ## initialized statically, may be customized by embedders
96 Python/frozen.c - PyImport_FrozenModules -
97 Python/import.c - PyImport_Inittab inittab_copy -
98 # used temporarily during init Python/import.c - PyImport_Inittab -
99 Python/sysmodule.c ##################################
100 Python/sysmodule.c ## runtime-global state
101 ################################## ##-----------------------
102 # special-use diagnistic state ## tied to each init/fini cycle
103 Parser/pegen.c ## the consolidated runtime state
104 ################################## Python/pylifecycle.c - _PyRuntime -
105 # one-off temporary state Python/pylifecycle.c - runtime_initialized -
119 Include/pydecimal.h Python/sysmodule.c - _decimal_api _preinit_warnoptions -
120 Modules/_blake2/blake2module.c Python/sysmodule.c - blake2b_type_spec _preinit_xoptions -
121 Modules/_blake2/blake2module.c # thread-safety
122 Modules/_io/fileio.c # XXX need race protection?
123 Python/pylifecycle.c _Py_FatalErrorFormat reentrant -
124 Python/pylifecycle.c fatal_error reentrant -
125 Modules/_io/_iomodule.h ##################################
126 Modules/_io/_iomodule.h ## not significant
127 Modules/_io/_iomodule.h ##-----------------------
128 Modules/_io/_iomodule.h ## not used (kept for compatibility)
129 Modules/_io/_iomodule.h Python/pyfpe.c - PyFileIO_Type PyFPE_counter -
130 ##-----------------------
131 ## should be const
132 # XXX Make them const.
133 # These are all variables that we will be leaving global.
134 # All module defs, type defs, etc. are handled in c-analyzr/cpython/_analyzer.py.
135 # All kwlist arrays are handled in c-analyzr/cpython/_analyzer.py.
136 # other vars that are actually constant
137 Include/internal/pycore_blocks_output_buffer.h - BUFFER_BLOCK_SIZE -
138 Modules/_csv.c - quote_styles -
139 Modules/_ctypes/cfield.c - ffi_type_double -
140 Modules/_ctypes/cfield.c - ffi_type_float -
141 Modules/_ctypes/cfield.c - ffi_type_longdouble -
142 Modules/_ctypes/cfield.c - ffi_type_pointer -
143 Modules/_ctypes/cfield.c - ffi_type_sint16 -
144 Modules/_ctypes/cfield.c - ffi_type_sint32 -
145 Modules/_ctypes/cfield.c - ffi_type_sint64 -
146 Modules/_ctypes/cfield.c - ffi_type_sint8 -
147 Modules/_ctypes/cfield.c - ffi_type_uint16 -
148 Modules/_ctypes/cfield.c - ffi_type_uint32 -
149 Modules/_ctypes/cfield.c - ffi_type_uint64 -
150 Modules/_ctypes/cfield.c - ffi_type_uint8 -
151 Modules/_ctypes/cfield.c - ffi_type_void -
152 Modules/_datetimemodule.c - epoch -
153 Modules/_datetimemodule.c - max_fold_seconds -
154 Modules/_datetimemodule.c datetime_isoformat specs -
155 Modules/_datetimemodule.c parse_hh_mm_ss_ff correction -
156 Modules/_datetimemodule.c time_isoformat specs -
157 Modules/_decimal/_decimal.c - cond_map -
158 Modules/_decimal/_decimal.c - dec_signal_string -
159 Modules/_io/_iomodule.h Modules/_decimal/_decimal.c - PyBytesIO_Type dflt_ctx -
160 Modules/_io/_iomodule.h Modules/_decimal/_decimal.c - PyStringIO_Type int_constants -
161 Modules/_io/_iomodule.h Modules/_decimal/_decimal.c - PyBufferedReader_Type invalid_rounding_err -
162 Modules/_io/_iomodule.h Modules/_decimal/_decimal.c - PyBufferedWriter_Type invalid_signals_err -
163 Modules/_io/_iomodule.h Modules/_decimal/_decimal.c - PyBufferedRWPair_Type signal_map -
Modules/_io/_iomodule.h - PyBufferedRandom_Type -
Modules/_io/_iomodule.h - PyTextIOWrapper_Type -
Modules/_io/_iomodule.h - PyIncrementalNewlineDecoder_Type -
Modules/_io/_iomodule.h - _PyBytesIOBuffer_Type -
Modules/_io/_iomodule.h - _PyIO_Module -
Modules/_io/_iomodule.h - _PyIO_str_close -
Modules/_io/_iomodule.h - _PyIO_str_closed -
Modules/_io/_iomodule.h - _PyIO_str_decode -
Modules/_io/_iomodule.h - _PyIO_str_encode -
164 Modules/_io/_iomodule.h Modules/_decimal/_decimal.c - _PyIO_str_fileno ssize_constants -
165 Modules/_io/_iomodule.h Modules/_elementtree.c - _PyIO_str_flush ExpatMemoryHandler -
166 Modules/_io/_iomodule.h Modules/_io/_iomodule.c - _PyIO_str_getstate static_types -
167 Modules/_io/_iomodule.h Modules/_io/textio.c - _PyIO_str_isatty encodefuncs -
168 Modules/_io/_iomodule.h Modules/_io/winconsoleio.c - _PyIO_str_newlines _PyWindowsConsoleIO_Type -
169 Modules/_io/_iomodule.h Modules/_localemodule.c - _PyIO_str_nl langinfo_constants -
170 Modules/_pickle.c - READ_WHOLE_LINE -
171 Modules/_sqlite/module.c - error_codes -
172 Modules/_sre/sre.c pattern_repr flag_names -
173 Modules/_io/_iomodule.h # XXX I'm pretty sure this is actually constant:
174 Modules/_io/_iomodule.h Modules/_sre/sre_targets.h - _PyIO_str_read sre_targets -
175 Modules/_io/_iomodule.h Modules/_sre.c - pattern_repr _PyIO_str_read1 flag_names -
176 Modules/_struct.c - bigendian_table -
177 Modules/_struct.c - lilendian_table -
178 Modules/_tkinter.c - state_key -
179 Modules/_io/_iomodule.h Modules/_xxsubinterpretersmodule.c - _PyIO_str_readable _channelid_end_recv -
180 Modules/_io/_iomodule.h Modules/_xxsubinterpretersmodule.c - _PyIO_str_readall _channelid_end_send -
Modules/_io/_iomodule.h - _PyIO_str_readinto -
Modules/_io/_iomodule.h - _PyIO_str_readline -
181 Modules/_io/_iomodule.h Modules/_zoneinfo.c - _PyIO_str_reset DAYS_BEFORE_MONTH -
182 Modules/_io/_iomodule.h Modules/_zoneinfo.c - _PyIO_str_seek DAYS_IN_MONTH -
183 Modules/_io/_iomodule.h Modules/arraymodule.c - _PyIO_str_seekable descriptors -
184 Modules/_io/_iomodule.h Modules/arraymodule.c - _PyIO_str_setstate emptybuf -
185 Modules/_io/_iomodule.h Modules/cjkcodecs/_codecs_cn.c - _PyIO_str_tell _mapping_list -
186 Modules/_io/_iomodule.h Modules/cjkcodecs/_codecs_cn.c - _PyIO_str_truncate mapping_list -
187 Modules/_io/_iomodule.h Modules/cjkcodecs/_codecs_cn.c - _PyIO_str_writable _codec_list -
188 Modules/_io/_iomodule.h Modules/cjkcodecs/_codecs_cn.c - _PyIO_str_write codec_list -
189 Modules/_io/_iomodule.h Modules/cjkcodecs/_codecs_hk.c - _PyIO_empty_str big5hkscs_pairenc_table -
190 Modules/_io/_iomodule.h Modules/cjkcodecs/_codecs_hk.c - _PyIO_empty_bytes _mapping_list -
191 Modules/_multiprocessing/multiprocessing.h Modules/cjkcodecs/_codecs_hk.c - _PyMp_SemLockType mapping_list -
192 Modules/_sqlite/module.c Modules/cjkcodecs/_codecs_hk.c - _pysqlite_converters _codec_list -
193 Modules/_sqlite/module.c Modules/cjkcodecs/_codecs_hk.c - _pysqlite_enable_callback_tracebacks codec_list -
194 Modules/_sqlite/module.c Modules/cjkcodecs/_codecs_iso2022.c - pysqlite_BaseTypeAdapted iso2022_kr_config -
195 Modules/_sqlite/module.h Modules/cjkcodecs/_codecs_iso2022.c - pysqlite_global_state iso2022_jp_config -
196 Modules/_testcapimodule.c Modules/cjkcodecs/_codecs_iso2022.c - _PyBytesIOBuffer_Type iso2022_jp_1_config -
197 Modules/posixmodule.c Modules/cjkcodecs/_codecs_iso2022.c - _Py_open_cloexec_works iso2022_jp_2_config -
198 Objects/object.c Modules/cjkcodecs/_codecs_iso2022.c - _Py_GenericAliasIterType iso2022_jp_2004_config -
199 Objects/object.c Modules/cjkcodecs/_codecs_iso2022.c - _PyMemoryIter_Type iso2022_jp_3_config -
200 Objects/object.c Modules/cjkcodecs/_codecs_iso2022.c - _PyLineIterator iso2022_jp_ext_config -
201 Objects/object.c Modules/cjkcodecs/_codecs_iso2022.c - _PyPositionsIterator _mapping_list -
202 Python/perf_trampoline.c Modules/cjkcodecs/_codecs_iso2022.c - _Py_trampoline_func_start mapping_list -
203 Python/perf_trampoline.c Modules/cjkcodecs/_codecs_iso2022.c - _Py_trampoline_func_end _codec_list -
204 Python/importdl.h Modules/cjkcodecs/_codecs_iso2022.c - _PyImport_DynLoadFiletab codec_list -
205 Modules/expat/xmlrole.c Modules/cjkcodecs/_codecs_jp.c - prolog0 _mapping_list -
206 Modules/expat/xmlrole.c Modules/cjkcodecs/_codecs_jp.c - prolog1 mapping_list -
207 Modules/expat/xmlrole.c Modules/cjkcodecs/_codecs_jp.c - prolog2 _codec_list -
208 Modules/expat/xmlrole.c Modules/cjkcodecs/_codecs_jp.c - doctype0 codec_list -
209 Modules/expat/xmlrole.c Modules/cjkcodecs/_codecs_kr.c - doctype1 u2johabjamo -
210 Modules/expat/xmlrole.c Modules/cjkcodecs/_codecs_kr.c - doctype2 _mapping_list -
211 Modules/expat/xmlrole.c Modules/cjkcodecs/_codecs_kr.c - doctype3 mapping_list -
212 Modules/expat/xmlrole.c Modules/cjkcodecs/_codecs_kr.c - doctype4 _codec_list -
213 Modules/expat/xmlrole.c Modules/cjkcodecs/_codecs_kr.c - doctype5 codec_list -
214 Modules/expat/xmlrole.c Modules/cjkcodecs/_codecs_tw.c - internalSubset _mapping_list -
215 Modules/expat/xmlrole.c Modules/cjkcodecs/_codecs_tw.c - entity0 mapping_list -
216 Modules/expat/xmlrole.c Modules/cjkcodecs/_codecs_tw.c - entity1 _codec_list -
217 Modules/expat/xmlrole.c Modules/cjkcodecs/_codecs_tw.c - entity2 codec_list -
218 Modules/expat/xmlrole.c Modules/cjkcodecs/cjkcodecs.h - entity3 __methods -
219 Modules/expat/xmlrole.c Modules/cmathmodule.c - entity4 acos_special_values -
220 Modules/expat/xmlrole.c Modules/cmathmodule.c - entity5 acosh_special_values -
221 Modules/expat/xmlrole.c Modules/cmathmodule.c - entity6 asinh_special_values -
222 Modules/expat/xmlrole.c Modules/cmathmodule.c - entity7 atanh_special_values -
223 Modules/expat/xmlrole.c Modules/cmathmodule.c - entity8 cosh_special_values -
224 Modules/expat/xmlrole.c Modules/cmathmodule.c - entity9 exp_special_values -
225 Modules/expat/xmlrole.c Modules/cmathmodule.c - entity10 log_special_values -
226 Modules/expat/xmlrole.c Modules/cmathmodule.c - notation0 rect_special_values -
227 Modules/expat/xmlrole.c Modules/cmathmodule.c - notation1 sinh_special_values -
228 Modules/expat/xmlrole.c Modules/cmathmodule.c - notation2 sqrt_special_values -
229 Modules/expat/xmlrole.c Modules/cmathmodule.c - notation3 tanh_special_values -
230 Modules/expat/xmlrole.c Modules/config.c - notation4 _PyImport_Inittab -
231 Modules/expat/xmlrole.c Modules/faulthandler.c - attlist0 faulthandler_handlers -
232 Modules/expat/xmlrole.c Modules/getnameinfo.c - attlist1 gni_afdl -
233 Modules/expat/xmlrole.c Modules/nismodule.c - attlist2 TIMEOUT -
234 Modules/expat/xmlrole.c Modules/nismodule.c - attlist3 aliases -
235 Modules/expat/xmlrole.c Modules/ossaudiodev.c - attlist4 control_labels -
236 Modules/expat/xmlrole.c Modules/ossaudiodev.c - attlist5 control_names -
237 Modules/expat/xmlrole.c Modules/posixmodule.c - os_getxattr_impl attlist6 buffer_sizes -
238 Modules/expat/xmlrole.c Modules/posixmodule.c - os_listxattr_impl attlist7 buffer_sizes -
239 Modules/expat/xmlrole.c Modules/posixmodule.c - attlist8 posix_constants_confstr -
240 Modules/expat/xmlrole.c Modules/posixmodule.c - attlist9 posix_constants_pathconf -
241 Modules/expat/xmlrole.c Modules/posixmodule.c - element0 posix_constants_sysconf -
242 Modules/expat/xmlrole.c Modules/pyexpat.c - element1 ExpatMemoryHandler -
243 Modules/expat/xmlrole.c Modules/pyexpat.c - element2 error_info_of -
244 Modules/expat/xmlrole.c Modules/pyexpat.c - element3 handler_info -
245 Modules/expat/xmlrole.c Modules/termios.c - element4 termios_constants -
246 Modules/expat/xmlrole.c Modules/timemodule.c - init_timezone element5 YEAR -
247 Modules/expat/xmlrole.c Objects/bytearrayobject.c - element6 _PyByteArray_empty_string -
248 Objects/complexobject.c - c_1 -
249 Objects/exceptions.c - static_exceptions -
250 Objects/genobject.c - ASYNC_GEN_IGNORED_EXIT_MSG -
251 Objects/genobject.c - NON_INIT_CORO_MSG -
252 Objects/longobject.c - _PyLong_DigitValue -
253 Objects/object.c - _Py_SwappedOp -
254 Objects/object.c - _Py_abstract_hack -
255 Objects/object.c - static_types -
256 Objects/obmalloc.c - _PyMem -
257 Objects/obmalloc.c - _PyMem_Debug -
258 Objects/obmalloc.c - _PyMem_Raw -
259 Objects/obmalloc.c - _PyObject -
260 Objects/obmalloc.c - usedpools -
261 Objects/typeobject.c - name_op -
262 Objects/typeobject.c - slotdefs -
263 Objects/unicodeobject.c - stripfuncnames -
264 Objects/unicodeobject.c - utf7_category -
265 Objects/unicodeobject.c unicode_decode_call_errorhandler_wchar argparse -
266 Objects/unicodeobject.c unicode_decode_call_errorhandler_writer argparse -
267 Objects/unicodeobject.c unicode_encode_call_errorhandler argparse -
268 Objects/unicodeobject.c unicode_translate_call_errorhandler argparse -
269 Parser/parser.c - reserved_keywords -
270 Parser/parser.c - soft_keywords -
271 Parser/tokenizer.c - type_comment_prefix -
272 Python/ast_opt.c fold_unaryop ops -
273 Python/ceval.c - binary_ops -
274 Python/codecs.c - Py_hexdigits -
275 Python/codecs.c - ucnhash_capi -
276 Python/codecs.c _PyCodecRegistry_Init methods -
277 Python/compile.c - NO_LABEL -
278 Python/compile.c - NO_LOCATION -
279 Python/dynload_shlib.c - _PyImport_DynLoadFiletab -
280 Python/dynload_stub.c - _PyImport_DynLoadFiletab -
281 Python/frozen.c - aliases -
282 Python/frozen.c - bootstrap_modules -
283 Python/frozen.c - stdlib_modules -
284 Python/frozen.c - test_modules -
285 Python/frozen.c - _PyImport_FrozenAliases -
286 Python/frozen.c - _PyImport_FrozenBootstrap -
287 Python/frozen.c - _PyImport_FrozenStdlib -
288 Python/frozen.c - _PyImport_FrozenTest -
289 Python/getopt.c - longopts -
290 Python/import.c - _PyImport_Inittab -
291 Python/import.c - _PySys_ImplCacheTag -
292 Python/opcode_targets.h - opcode_targets -
293 Python/perf_trampoline.c - _Py_perfmap_callbacks -
294 Python/pyhash.c - PyHash_Func -
295 Python/pylifecycle.c - _C_LOCALE_WARNING -
296 Python/pylifecycle.c - _PyOS_mystrnicmp_hack -
297 Python/pylifecycle.c - _TARGET_LOCALES -
298 Python/pystate.c - initial -
299 Python/specialize.c - adaptive_opcodes -
300 Python/specialize.c - cache_requirements -
301 Python/specialize.c - compare_masks -
302 Python/stdlib_module_names.h - _Py_stdlib_module_names -
303 Python/sysmodule.c - _PySys_ImplCacheTag -
304 Python/sysmodule.c - _PySys_ImplName -
305 Python/sysmodule.c - whatstrings -
306 ##-----------------------
307 ## test code
308 Modules/_ctypes/_ctypes_test.c - _ctypes_test_slots -
309 Modules/_ctypes/_ctypes_test.c - _ctypes_testmodule -
310 Modules/_ctypes/_ctypes_test.c - _xxx_lib -
311 Modules/_ctypes/_ctypes_test.c - an_integer -
312 Modules/_ctypes/_ctypes_test.c - bottom -
313 Modules/_ctypes/_ctypes_test.c - last_tf_arg_s -
314 Modules/_ctypes/_ctypes_test.c - last_tf_arg_u -
315 Modules/_ctypes/_ctypes_test.c - last_tfrsuv_arg -
316 Modules/_ctypes/_ctypes_test.c - left -
317 Modules/_ctypes/_ctypes_test.c - module_methods -
318 Modules/_ctypes/_ctypes_test.c - my_eggs -
319 Modules/_ctypes/_ctypes_test.c - my_spams -
320 Modules/_ctypes/_ctypes_test.c - right -
321 Modules/_ctypes/_ctypes_test.c - top -
322 Modules/_testbuffer.c - NDArray_Type -
323 Modules/_testbuffer.c - StaticArray_Type -
324 Modules/_testbuffer.c - Struct -
325 Modules/_testbuffer.c - _testbuffer_functions -
326 Modules/_testbuffer.c - _testbuffermodule -
327 Modules/_testbuffer.c - calcsize -
328 Modules/_testbuffer.c - infobuf -
329 Modules/_testbuffer.c - ndarray_as_buffer -
330 Modules/_testbuffer.c - ndarray_as_mapping -
331 Modules/_testbuffer.c - ndarray_as_sequence -
332 Modules/_testbuffer.c - ndarray_getset -
333 Modules/_testbuffer.c - ndarray_methods -
334 Modules/_testbuffer.c - simple_fmt -
335 Modules/_testbuffer.c - simple_format -
336 Modules/_testbuffer.c - static_buffer -
337 Modules/_testbuffer.c - static_mem -
338 Modules/_testbuffer.c - static_shape -
339 Modules/_testbuffer.c - static_strides -
340 Modules/_testbuffer.c - staticarray_as_buffer -
341 Modules/_testbuffer.c - structmodule -
342 Modules/_testbuffer.c ndarray_init kwlist -
343 Modules/_testbuffer.c ndarray_memoryview_from_buffer format -
344 Modules/_testbuffer.c ndarray_memoryview_from_buffer info -
345 Modules/_testbuffer.c ndarray_memoryview_from_buffer shape -
346 Modules/_testbuffer.c ndarray_memoryview_from_buffer strides -
347 Modules/_testbuffer.c ndarray_memoryview_from_buffer suboffsets -
348 Modules/_testbuffer.c ndarray_push kwlist -
349 Modules/_testbuffer.c staticarray_init kwlist -
350 Modules/_testcapi/heaptype.c - _testcapimodule -
351 Modules/_testcapi/unicode.c - _testcapimodule -
352 Modules/_testcapimodule.c - ContainerNoGC_members -
353 Modules/_testcapimodule.c - ContainerNoGC_type -
354 Modules/_testcapimodule.c - FmData -
355 Modules/_testcapimodule.c - FmHook -
356 Modules/expat/xmlrole.c Modules/_testcapimodule.c - element7 GenericAlias_Type -
357 Modules/expat/xmlrole.c Modules/_testcapimodule.c - externalSubset0 Generic_Type -
358 Modules/expat/xmlrole.c Modules/_testcapimodule.c - externalSubset1 HeapCTypeSetattr_slots -
Modules/expat/xmlrole.c - condSect0 -
Modules/expat/xmlrole.c - condSect1 -
Modules/expat/xmlrole.c - condSect2 -
Modules/expat/xmlrole.c - declClose -
Modules/expat/xmlrole.c - error -
##################################
# test code
Modules/_ctypes/_ctypes_test.c - _ctypes_test_slots -
Modules/_ctypes/_ctypes_test.c - _ctypes_testmodule -
Modules/_ctypes/_ctypes_test.c - _xxx_lib -
Modules/_ctypes/_ctypes_test.c - an_integer -
Modules/_ctypes/_ctypes_test.c - bottom -
Modules/_ctypes/_ctypes_test.c - last_tf_arg_s -
Modules/_ctypes/_ctypes_test.c - last_tf_arg_u -
Modules/_ctypes/_ctypes_test.c - last_tfrsuv_arg -
Modules/_ctypes/_ctypes_test.c - left -
Modules/_ctypes/_ctypes_test.c - module_methods -
Modules/_ctypes/_ctypes_test.c - my_eggs -
Modules/_ctypes/_ctypes_test.c - my_spams -
Modules/_ctypes/_ctypes_test.c - right -
Modules/_ctypes/_ctypes_test.c - top -
Modules/_testbuffer.c - NDArray_Type -
Modules/_testbuffer.c - StaticArray_Type -
Modules/_testbuffer.c - Struct -
Modules/_testbuffer.c - _testbuffer_functions -
Modules/_testbuffer.c - _testbuffermodule -
Modules/_testbuffer.c - calcsize -
Modules/_testbuffer.c - infobuf -
Modules/_testbuffer.c - ndarray_as_buffer -
Modules/_testbuffer.c - ndarray_as_mapping -
Modules/_testbuffer.c - ndarray_as_sequence -
Modules/_testbuffer.c - ndarray_getset -
Modules/_testbuffer.c - ndarray_methods -
Modules/_testbuffer.c - simple_fmt -
Modules/_testbuffer.c - simple_format -
Modules/_testbuffer.c - static_buffer -
Modules/_testbuffer.c - static_mem -
Modules/_testbuffer.c - static_shape -
Modules/_testbuffer.c - static_strides -
Modules/_testbuffer.c - staticarray_as_buffer -
Modules/_testbuffer.c - structmodule -
Modules/_testbuffer.c ndarray_init kwlist -
Modules/_testbuffer.c ndarray_memoryview_from_buffer format -
Modules/_testbuffer.c ndarray_memoryview_from_buffer info -
Modules/_testbuffer.c ndarray_memoryview_from_buffer shape -
Modules/_testbuffer.c ndarray_memoryview_from_buffer strides -
Modules/_testbuffer.c ndarray_memoryview_from_buffer suboffsets -
Modules/_testbuffer.c ndarray_push kwlist -
Modules/_testbuffer.c staticarray_init kwlist -
Modules/_testcapi/heaptype.c - _testcapimodule -
Modules/_testcapi/unicode.c - _testcapimodule -
Modules/_testcapimodule.c - ContainerNoGC_members -
Modules/_testcapimodule.c - ContainerNoGC_type -
359 Modules/_testcapimodule.c - FmData HeapCTypeSetattr_spec -
360 Modules/_testcapimodule.c - FmHook HeapCTypeSubclassWithFinalizer_slots -
361 Modules/_testcapimodule.c - GenericAlias_Type HeapCTypeSubclassWithFinalizer_spec -
555 Modules/_sre/sre_targets.h Modules/_io/_iomodule.h - sre_targets _PyIO_empty_bytes -
556 Modules/_sre.c Modules/_multiprocessing/multiprocessing.h pattern_repr - flag_names _PyMp_SemLockType -
557 Modules/_struct.c Modules/_sqlite/module.c - bigendian_table _pysqlite_converters -
558 Modules/_sqlite/module.c - _pysqlite_enable_callback_tracebacks -
559 Modules/_sqlite/module.c - pysqlite_BaseTypeAdapted -
560 Modules/_sqlite/module.h - pysqlite_global_state -
561 Modules/_struct.c Modules/_testcapimodule.c - lilendian_table _PyBytesIOBuffer_Type -
562 Modules/_tkinter.c Modules/posixmodule.c - state_key _Py_open_cloexec_works -
563 Modules/_xxsubinterpretersmodule.c Modules/posixmodule.c - _channelid_end_recv environ -
564 Modules/_xxsubinterpretersmodule.c Objects/object.c - _channelid_end_send _Py_GenericAliasIterType -
565 Objects/object.c - _PyMemoryIter_Type -
566 Objects/object.c - _PyLineIterator -
567 Objects/object.c - _PyPositionsIterator -
568 Python/perf_trampoline.c - _Py_trampoline_func_start -
569 Python/perf_trampoline.c - _Py_trampoline_func_end -
570 Python/importdl.h - _PyImport_DynLoadFiletab -
571 Modules/expat/xmlrole.c - prolog0 -
572 Modules/expat/xmlrole.c - prolog1 -
573 Modules/expat/xmlrole.c - prolog2 -
574 Modules/expat/xmlrole.c - doctype0 -
575 Modules/expat/xmlrole.c - doctype1 -
576 Modules/expat/xmlrole.c - doctype2 -
577 Modules/expat/xmlrole.c - doctype3 -
578 Modules/expat/xmlrole.c - doctype4 -
579 Modules/expat/xmlrole.c - doctype5 -
580 Modules/expat/xmlrole.c - internalSubset -
581 Modules/expat/xmlrole.c - entity0 -
582 Modules/expat/xmlrole.c - entity1 -
583 Modules/expat/xmlrole.c - entity2 -
584 Modules/expat/xmlrole.c - entity3 -
585 Modules/expat/xmlrole.c - entity4 -
586 Modules/expat/xmlrole.c - entity5 -
587 Modules/expat/xmlrole.c - entity6 -
588 Modules/expat/xmlrole.c - entity7 -
589 Modules/expat/xmlrole.c - entity8 -
590 Modules/expat/xmlrole.c - entity9 -
591 Modules/expat/xmlrole.c - entity10 -
592 Modules/expat/xmlrole.c - notation0 -
593 Modules/expat/xmlrole.c - notation1 -
594 Modules/expat/xmlrole.c - notation2 -
595 Modules/expat/xmlrole.c - notation3 -
596 Modules/expat/xmlrole.c - notation4 -
597 Modules/expat/xmlrole.c - attlist0 -
598 Modules/expat/xmlrole.c - attlist1 -
599 Modules/expat/xmlrole.c - attlist2 -
600 Modules/expat/xmlrole.c - attlist3 -
601 Modules/expat/xmlrole.c - attlist4 -
602 Modules/expat/xmlrole.c - attlist5 -
603 Modules/expat/xmlrole.c - attlist6 -
604 Modules/expat/xmlrole.c - attlist7 -
605 Modules/expat/xmlrole.c - attlist8 -
606 Modules/expat/xmlrole.c - attlist9 -
607 Modules/expat/xmlrole.c - element0 -
608 Modules/expat/xmlrole.c - element1 -
609 Modules/expat/xmlrole.c - element2 -
610 Modules/expat/xmlrole.c - element3 -
611 Modules/expat/xmlrole.c - element4 -
612 Modules/expat/xmlrole.c - element5 -
613 Modules/expat/xmlrole.c - element6 -
614 Modules/expat/xmlrole.c - element7 -
615 Modules/expat/xmlrole.c - externalSubset0 -
616 Modules/expat/xmlrole.c - externalSubset1 -
617 Modules/expat/xmlrole.c - condSect0 -
618 Modules/expat/xmlrole.c - condSect1 -
619 Modules/expat/xmlrole.c - condSect2 -
620 Modules/expat/xmlrole.c - declClose -
621 Modules/expat/xmlrole.c - error -
622 ## other
623 Modules/_io/_iomodule.c - _PyIO_Module -
624 Modules/_sqlite/module.c - _sqlite3module -
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
Modules/cjkcodecs/_codecs_cn.c - _mapping_list -
Modules/cjkcodecs/_codecs_cn.c - mapping_list -
Modules/cjkcodecs/_codecs_cn.c - _codec_list -
Modules/cjkcodecs/_codecs_cn.c - codec_list -
Modules/cjkcodecs/_codecs_hk.c - big5hkscs_pairenc_table -
Modules/cjkcodecs/_codecs_hk.c - _mapping_list -
Modules/cjkcodecs/_codecs_hk.c - mapping_list -
Modules/cjkcodecs/_codecs_hk.c - _codec_list -
Modules/cjkcodecs/_codecs_hk.c - codec_list -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_kr_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_1_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_2_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_2004_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_3_config -
Modules/cjkcodecs/_codecs_iso2022.c - iso2022_jp_ext_config -
Modules/cjkcodecs/_codecs_iso2022.c - _mapping_list -
Modules/cjkcodecs/_codecs_iso2022.c - mapping_list -
Modules/cjkcodecs/_codecs_iso2022.c - _codec_list -
Modules/cjkcodecs/_codecs_iso2022.c - codec_list -
Modules/cjkcodecs/_codecs_jp.c - _mapping_list -
Modules/cjkcodecs/_codecs_jp.c - mapping_list -
Modules/cjkcodecs/_codecs_jp.c - _codec_list -
Modules/cjkcodecs/_codecs_jp.c - codec_list -
Modules/cjkcodecs/_codecs_kr.c - u2johabjamo -
Modules/cjkcodecs/_codecs_kr.c - _mapping_list -
Modules/cjkcodecs/_codecs_kr.c - mapping_list -
Modules/cjkcodecs/_codecs_kr.c - _codec_list -
Modules/cjkcodecs/_codecs_kr.c - codec_list -
Modules/cjkcodecs/_codecs_tw.c - _mapping_list -
Modules/cjkcodecs/_codecs_tw.c - mapping_list -
Modules/cjkcodecs/_codecs_tw.c - _codec_list -
Modules/cjkcodecs/_codecs_tw.c - codec_list -
Modules/cjkcodecs/cjkcodecs.h - __methods -
Modules/cmathmodule.c - acos_special_values -
Modules/cmathmodule.c - acosh_special_values -
Modules/cmathmodule.c - asinh_special_values -
Modules/cmathmodule.c - atanh_special_values -
Modules/cmathmodule.c - cosh_special_values -
Modules/cmathmodule.c - exp_special_values -
Modules/cmathmodule.c - log_special_values -
Modules/cmathmodule.c - rect_special_values -
Modules/cmathmodule.c - sinh_special_values -
Modules/cmathmodule.c - sqrt_special_values -
Modules/cmathmodule.c - tanh_special_values -
Modules/config.c - _PyImport_Inittab -
Modules/faulthandler.c - faulthandler_handlers -
Modules/getnameinfo.c - gni_afdl -
Modules/nismodule.c - TIMEOUT -
Modules/nismodule.c - aliases -
Modules/ossaudiodev.c - control_labels -
Modules/ossaudiodev.c - control_names -
Modules/posixmodule.c os_getxattr_impl buffer_sizes -
Modules/posixmodule.c os_listxattr_impl buffer_sizes -
Modules/posixmodule.c - posix_constants_confstr -
Modules/posixmodule.c - posix_constants_pathconf -
Modules/posixmodule.c - posix_constants_sysconf -
Modules/pyexpat.c - ExpatMemoryHandler -
Modules/pyexpat.c - error_info_of -
Modules/pyexpat.c - handler_info -
Modules/termios.c - termios_constants -
Modules/timemodule.c init_timezone YEAR -
Objects/bytearrayobject.c - _PyByteArray_empty_string -
Objects/complexobject.c - c_1 -
Objects/exceptions.c - static_exceptions -
Objects/genobject.c - ASYNC_GEN_IGNORED_EXIT_MSG -
Objects/genobject.c - NON_INIT_CORO_MSG -
Objects/longobject.c - _PyLong_DigitValue -
Objects/object.c - _Py_SwappedOp -
Objects/object.c - _Py_abstract_hack -
Objects/object.c - static_types -
Objects/obmalloc.c - _PyMem -
Objects/obmalloc.c - _PyMem_Debug -
Objects/obmalloc.c - _PyMem_Raw -
Objects/obmalloc.c - _PyObject -
Objects/obmalloc.c - usedpools -
Objects/typeobject.c - name_op -
Objects/typeobject.c - slotdefs -
Objects/unicodeobject.c - stripfuncnames -
Objects/unicodeobject.c - utf7_category -
Objects/unicodeobject.c unicode_decode_call_errorhandler_wchar argparse -
Objects/unicodeobject.c unicode_decode_call_errorhandler_writer argparse -
Objects/unicodeobject.c unicode_encode_call_errorhandler argparse -
Objects/unicodeobject.c unicode_translate_call_errorhandler argparse -
Parser/parser.c - reserved_keywords -
Parser/parser.c - soft_keywords -
Parser/tokenizer.c - type_comment_prefix -
Python/ast_opt.c fold_unaryop ops -
Python/ceval.c - binary_ops -
Python/codecs.c - Py_hexdigits -
Python/codecs.c - ucnhash_capi -
Python/codecs.c _PyCodecRegistry_Init methods -
Python/compile.c - NO_LABEL -
Python/compile.c - NO_LOCATION -
Python/dynload_shlib.c - _PyImport_DynLoadFiletab -
Python/dynload_stub.c - _PyImport_DynLoadFiletab -
Python/frozen.c - aliases -
Python/frozen.c - bootstrap_modules -
Python/frozen.c - stdlib_modules -
Python/frozen.c - test_modules -
Python/frozen.c - _PyImport_FrozenAliases -
Python/frozen.c - _PyImport_FrozenBootstrap -
Python/frozen.c - _PyImport_FrozenStdlib -
Python/frozen.c - _PyImport_FrozenTest -
Python/getopt.c - longopts -
Python/import.c - _PyImport_Inittab -
Python/import.c - _PySys_ImplCacheTag -
Python/opcode_targets.h - opcode_targets -
Python/perf_trampoline.c - _Py_perfmap_callbacks -
Python/pyhash.c - PyHash_Func -
Python/pylifecycle.c - _C_LOCALE_WARNING -
Python/pylifecycle.c - _PyOS_mystrnicmp_hack -
Python/pylifecycle.c - _TARGET_LOCALES -
Python/pystate.c - initial -
Python/specialize.c - adaptive_opcodes -
Python/specialize.c - cache_requirements -
Python/specialize.c - compare_masks -
Python/stdlib_module_names.h - _Py_stdlib_module_names -
Python/sysmodule.c - _PySys_ImplCacheTag -
Python/sysmodule.c - _PySys_ImplName -
Python/sysmodule.c - whatstrings -
+50 -33
View File
@@ -1,43 +1,59 @@
KINDS = [
'section-major',
'section-minor',
'section-group',
'row',
]
def iter_clean_lines(lines):
lines = iter(lines)
for line in lines:
line = line.strip()
if line.startswith('# XXX'):
for rawline in lines:
line = rawline.strip()
if line.startswith('#') and not rawline.startswith('##'):
continue
yield line
yield line, rawline
def parse_table_lines(lines):
lines = iter_clean_lines(lines)
for line in lines:
if line.startswith(('####', '#----')):
kind = 0 if line[1] == '#' else 1
try:
line = next(lines).strip()
except StopIteration:
line = ''
if not line.startswith('# '):
raise NotImplementedError(line)
yield kind, line[2:].lstrip()
continue
maybe = None
while line.startswith('#'):
if line != '#' and line[1] == ' ':
maybe = line[2:].lstrip()
try:
line = next(lines).strip()
except StopIteration:
return
if not line:
break
else:
if line:
if maybe:
yield 2, maybe
yield 'row', line
group = None
prev = ''
for line, rawline in lines:
if line.startswith('## '):
assert not rawline.startswith(' '), (line, rawline)
if group:
assert prev, (line, rawline)
kind, after, _ = group
assert kind and kind != 'section-group', (group, line, rawline)
assert after is not None, (group, line, rawline)
else:
assert not prev, (prev, line, rawline)
kind, after = group = ('section-group', None)
title = line[3:].lstrip()
assert title, (line, rawline)
if after is not None:
try:
line, rawline = next(lines)
except StopIteration:
line = None
if line != after:
raise NotImplementedError((group, line, rawline))
yield kind, title
group = None
elif group:
raise NotImplementedError((group, line, rawline))
elif line.startswith('##---'):
assert line.rstrip('-') == '##', (line, rawline)
group = ('section-minor', '', line)
elif line.startswith('#####'):
assert not line.strip('#'), (line, rawline)
group = ('section-major', '', line)
elif line:
yield 'row', line
prev = line
def iter_sections(lines):
@@ -49,12 +65,13 @@ def iter_sections(lines):
if header is None:
header = value
continue
raise NotImplementedError(value)
raise NotImplementedError(repr(value))
yield tuple(section), value
else:
if header is None:
header = False
section[kind:] = [value]
start = KINDS.index(kind)
section[start:] = [value]
def collect_sections(lines):