cpython/Include/internal
Pablo Galindo Salgado f892b11f22
gh-153569: Simplify tokenizer source views and reader ownership (#158849)
Move source access and logical spans into the tokenizer source API, and keep input and encoding ownership in the reader. Export the incremental decoder helper for parser generator extensions.
2026-10-13 13:01:17 +00:00
..
mimalloc gh-144490: Fix mimalloc debug build for C++ (#144620) 2026-02-10 11:56:52 +01:00
pycore_abstract.h
pycore_asdl.h
pycore_ast.h gh-142349: Implement PEP 810 - Explicit lazy imports (#142351) 2026-02-12 00:15:33 +00:00
pycore_ast_state.h
pycore_atexit.h gh-131238: Remove pycore_lock.h includes (#131483) 2025-03-19 23:46:25 +00:00
pycore_audit.h gh-125604: Move _Py_AuditHookEntry, etc. Out of pycore_runtime.h (gh-125605) 2024-10-18 09:26:08 -06:00
pycore_backoff.h gh-129752: Don't update adaptive counters when TLBC=0 in free-threading. (gh-155497) 2026-08-13 00:12:39 +00:00
pycore_bitutils.h gh-108216: Cleanup #include in internal header files (#108228) 2023-08-21 18:05:59 +00:00
pycore_blocks_output_buffer.h
pycore_brc.h
pycore_bytes_methods.h
pycore_bytesobject.h gh-158219: Fix bytearray constructor to not use hashed object (#158329) 2026-09-29 11:31:54 +02:00
pycore_c_array.h gh-130080: move _Py_EnsureArrayLargeEnough to a separate header so it can be used outside of the compiler (#130930) 2025-03-13 16:02:58 +00:00
pycore_call.h gh-151157: Speed up PyObject_CallMethod via _PyObject_GetMethod (#151158) 2026-10-05 18:44:28 +00:00
pycore_capsule.h gh-108240: Add pycore_capsule.h internal header file (#108596) 2023-08-29 01:20:02 +00:00
pycore_cell.h
pycore_ceval.h gh-144712: Export _Py_jit_entry symbol via PyAPI_DATA (#145840) 2026-09-17 14:47:16 +01:00
pycore_ceval_state.h gh-131238: Remove pycore_lock.h includes (#131483) 2025-03-19 23:46:25 +00:00
pycore_code.h gh-129724: Intern string constants in the compiler, not per code object (GH-159193) 2026-10-12 21:37:55 -07:00
pycore_codecs.h gh-153569: Simplify tokenizer source views and reader ownership (#158849) 2026-10-13 13:01:17 +00:00
pycore_compile.h gh-124697: Represent inlined comprehensions as subscopes in the symbol table (#156819) 2026-09-23 20:31:57 +01:00
pycore_complexobject.h gh-128813: hide mixed-mode functions for complex arithmetic from C-API (#131703) 2025-04-22 14:18:18 +02:00
pycore_condvar.h gh-131082: Add missing guards for WIN32_LEAN_AND_MEAN (#131044) 2025-03-11 12:33:01 +01:00
pycore_context.h
pycore_critical_section.h gh-150902: Optimize PyCriticalSection2 to skip locking the same locks held by the current CS2 2026-06-16 16:56:37 +00:00
pycore_crossinterp.h gh-148072: Cache pickle.dumps/loads per interpreter in XIData (GH-148125) 2026-04-06 11:37:02 -04:00
pycore_crossinterp_data_registry.h gh-132775: Support Fallbacks in _PyObject_GetXIData() (gh-133482) 2025-05-21 07:23:48 -06:00
pycore_debug_offsets.h gh-151613: Fix remote debugging frame cache ABA (#151614) 2026-06-27 16:56:31 +00:00
pycore_descrobject.h
pycore_dict.h gh-142349: Simplify lazy import resolution (#158282) 2026-10-01 16:20:45 +00:00
pycore_dict_state.h gh-145235: Make dict watcher API thread-safe for free-threaded builds (gh-145233) 2026-05-11 11:39:55 -04:00
pycore_dtoa.h GH-131238: Core header refactor (GH-131250) 2025-03-17 09:19:04 +00:00
pycore_emscripten_signal.h GH-108614: Unbreak emscripten build (GH-109132) 2023-09-08 17:54:45 +01:00
pycore_exceptions.h
pycore_faulthandler.h gh-149085: Add max_threads keyword to faulthandler.dump_traceback() (GH-149106) 2026-04-30 09:27:57 -04:00
pycore_fileutils.h gh-158893: Add internal _Py_strerror() function (#158982) 2026-10-07 20:31:27 +00:00
pycore_fileutils_windows.h
pycore_floatobject.h gh-145633: Remove support for ancient ARM platforms with mixed-endian doubles (#145634) 2026-03-11 12:39:24 +01:00
pycore_flowgraph.h GH-143493: Conform to spec for generator expressions while supporting virtual iterators (GH-143569) 2026-01-16 09:11:58 +00:00
pycore_format.h gh-104018: remove unused format "z" handling in string formatfloat() (#104107) 2023-05-07 10:11:42 +05:30
pycore_frame.h
pycore_freelist.h gh-140544: store pointer to interpreter state as a thread local for fast access (#140573) 2025-10-25 19:56:07 +05:30
pycore_freelist_state.h gh-129813, PEP 782: Add PyBytesWriter C API (#138822) 2025-09-12 13:41:59 +02:00
pycore_function.h
pycore_gc.h gh-150766: export _PyGC_VisitFrameStack and _PyGC_VisitStackRef functions (#150767) 2026-06-02 18:38:21 +05:30
pycore_genobject.h gh-159137: Skip redundant GC resurrection analysis (#159138) 2026-10-10 22:46:49 +00:00
pycore_getopt.h Cleanup Python/getopt.c: add _PyOS_GetOpt structure (#158362) 2026-10-01 14:58:55 +00:00
pycore_gil.h gh-116322: Enable the GIL while loading C extension modules (#118560) 2024-05-06 23:07:23 -04:00
pycore_global_objects.h GH-131238: Core header refactor (GH-131250) 2025-03-17 09:19:04 +00:00
pycore_global_objects_fini.h
pycore_global_objects_fini_generated.h gh-154194: Degrade frames in Tachyon instead of failing the sample (#154195) 2026-10-05 00:37:21 +00:00
pycore_global_strings.h
pycore_hamt.h GH-131238: Core header refactor (GH-131250) 2025-03-17 09:19:04 +00:00
pycore_hashtable.h gh-107211: No longer export internal functions (5) (#108423) 2023-08-24 16:06:53 +00:00
pycore_import.h
pycore_importdl.h gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055) 2026-05-05 09:18:04 +02:00
pycore_index_pool.h
pycore_initconfig.h
pycore_instruction_sequence.h
pycore_instruments.h gh-142186: Allow all PEP-669 events to be per-code object and disableable (GH-146182) 2026-04-22 09:08:23 +01:00
pycore_interp.h gh-131238: Remove includes from pycore_interp.h (#131495) 2025-03-20 11:35:23 +00:00
pycore_interp_structs.h gh-155811: Add a seqcount to gc_stats to prevent torn reads (#155828) 2026-10-05 01:49:56 +00:00
pycore_interpframe.h gh-144446: Fix _PyFrame_GetFrameObject() for test_cppext (C++) (#156893) 2026-09-03 16:17:07 +02:00
pycore_interpframe_structs.h gh-158572: Add an external flag to interpreter frames (#158573) 2026-10-08 16:45:03 -07:00
pycore_interpolation.h gh-132661: Implement PEP 750 (#132662) 2025-04-30 11:46:41 +02:00
pycore_intrinsics.h gh-138912: Add fast path for match class patterns without sub-patterns (#144820) 2026-09-26 13:00:10 -07:00
pycore_iterobject.h gh-64862: Add the stop_exception parameter in iter() and aiter() (GH-156298) 2026-09-01 15:55:32 +03:00
pycore_jit.h GH-148960: Reduce the size of the debug stencils to less than half. (GH-150551) 2026-06-01 17:56:16 +01:00
pycore_jit_publish.h GH-126910: Add GNU backtrace support for unwinding JIT frames (#149104) 2026-05-05 09:29:07 +01:00
pycore_jit_unwind.h gh-149685: Use the _Py prefix for private C macros (GH-149686) 2026-05-13 19:14:05 +02:00
pycore_lazyimportobject.h gh-158140: Resolve lazily imported sibling submodules independently (#158521) 2026-10-02 19:20:04 +02:00
pycore_list.h gh-100239: Specialize more binary operations using BINARY_OP_EXTEND (GH-128956) 2026-04-16 09:22:41 +01:00
pycore_llist.h gh-111964: Implement stop-the-world pauses (gh-112471) 2024-01-23 11:08:23 -07:00
pycore_lock.h gh-145685: Remove _PySeqLock that is not used anymore (gh-155243) 2026-08-05 21:59:28 -04:00
pycore_long.h gh-143050: Add helper _PyLong_InitTag() (#147956) 2026-04-01 21:42:10 +00:00
pycore_magic_number.h gh-138912: Bump magic number post GH-144820 (#158258) 2026-09-27 02:27:46 +00:00
pycore_memoryobject.h gh-132776: Revert Moving memoryview XIData Code to memoryobject.c (gh-132960) 2025-04-25 16:43:50 +00:00
pycore_mimalloc.h
pycore_mmap.h gh-149685: Use the _Py prefix for private C macros (GH-149686) 2026-05-13 19:14:05 +02:00
pycore_modsupport.h gh-144175: Remove internal _PyArg_ParseStack() function (#159150) 2026-10-12 19:56:53 +02:00
pycore_moduleobject.h gh-145921: Add "_DuringGC" functions for tp_traverse (GH-145925) 2026-04-08 09:15:11 +02:00
pycore_namespace.h
pycore_object.h gh-129040: Use wasm-gc to handle pointer casts in wasi (GH-158617) 2026-10-09 22:25:44 +00:00
pycore_object_alloc.h gh-112529: Use GC heaps for GC allocations in free-threaded builds (gh-114157) 2024-01-21 01:14:45 +09:00
pycore_object_deferred.h
pycore_object_stack.h gh-125859: Fix crash when gc.get_objects is called during GC (#125882) 2024-10-24 09:33:11 -04:00
pycore_object_state.h gh-125604: Move _Py_AuditHookEntry, etc. Out of pycore_runtime.h (gh-125605) 2024-10-18 09:26:08 -06:00
pycore_obmalloc.h Note out-of-date obmalloc comments (#148149) 2026-04-06 23:08:47 -05:00
pycore_obmalloc_init.h gh-113055: Use pointer for interp->obmalloc state (gh-113412) 2024-01-26 19:38:14 -08:00
pycore_opcode_metadata.h gh-142349: Simplify lazy import resolution (#158282) 2026-10-01 16:20:45 +00:00
pycore_opcode_utils.h
pycore_optimizer.h gh-154701: prevent executor self-links in JIT cold exits (GH-155323) 2026-08-13 12:23:45 +01:00
pycore_optimizer_types.h gh-157468: Validate correct builtins used under JIT (GH-157766) 2026-10-01 12:15:51 +01:00
pycore_parking_lot.h gh-110850: Cleanup pycore_time.h includes (#115724) 2024-02-20 16:50:43 +00:00
pycore_parser.h
pycore_pathconfig.h gh-107211: No longer export internal functions (6) (#108424) 2023-08-24 17:28:35 +02:00
pycore_pyarena.h gh-107211: Fix test_peg_generator (#108435) 2023-08-24 17:47:44 +00:00
pycore_pyatomic_ft_wrappers.h
pycore_pybuffer.h
pycore_pyerrors.h gh-150459: Fix SyntaxError message for from x lazy import y (#150877) 2026-07-04 14:17:58 +01:00
pycore_pyhash.h gh-149018: Use XML_SetHashSalt16Bytes in pyexpat/_elementtree when possible (#149023) 2026-05-10 18:36:26 +01:00
pycore_pylifecycle.h gh-158445: Allocate memory in the heap in Py_GetVersion() (#158608) 2026-10-03 15:15:08 +02:00
pycore_pymath.h gh-145633: Remove support for ancient ARM platforms with mixed-endian doubles (#145634) 2026-03-11 12:39:24 +01:00
pycore_pymem.h gh-116008: Detect freed thread state in faulthandler (#141988) 2025-11-27 12:35:00 +01:00
pycore_pymem_init.h
pycore_pystate.h gh-158165: Fix _Py_get_machine_stack_pointer() compilation with MinGW (#158167) 2026-10-02 14:05:24 +09:00
pycore_pystats.h gh-131253: free-threaded build support for pystats (gh-137189) 2025-11-03 11:36:37 -08:00
pycore_pythonrun.h
pycore_pythread.h GH-131238: Core header refactor (GH-131250) 2025-03-17 09:19:04 +00:00
pycore_qsbr.h gh-144438: Fix false sharing between QSBR and tlbc_index (gh-144554) 2026-02-17 11:12:25 -05:00
pycore_range.h gh-89189: More compact range iterator (GH-27986) 2022-11-30 23:04:30 +02:00
pycore_runtime.h gh-146302: make Py_IsInitialized() thread-safe and reflect true init completion (GH-146303) 2026-04-11 21:54:23 +00:00
pycore_runtime_init.h GH-148726: Forward-port generational GC. (GH-148746) 2026-04-30 12:19:13 -07:00
pycore_runtime_init_generated.h gh-154194: Degrade frames in Tachyon instead of failing the sample (#154195) 2026-10-05 00:37:21 +00:00
pycore_runtime_structs.h
pycore_semaphore.h gh-137433: Fix deadlock with stop-the-world and daemon threads (gh-137735) 2025-09-16 09:21:58 +01:00
pycore_setobject.h gh-150027: Avoid copying during construction of frozenset objects (GH-150028) 2026-05-19 13:57:37 -04:00
pycore_signal.h gh-109693: Use pyatomic.h for signal module (gh-110480) 2023-10-10 08:26:29 +09:00
pycore_sliceobject.h
pycore_slots.h gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055) 2026-05-05 09:18:04 +02:00
pycore_slots_generated.h gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055) 2026-05-05 09:18:04 +02:00
pycore_stackref.h gh-148871: make LOAD_COMMON_CONSTANT use immortal stackref borrows (GH-149625) 2026-05-28 12:27:37 +01:00
pycore_stats.h
pycore_strhex.h gh-147944: Increase range of bytes_per_sep (GH-147946) 2026-04-01 08:33:30 +00:00
pycore_structs.h GH-131498: Cases generator: manage stacks automatically (GH-132074) 2025-04-04 17:59:36 +01:00
pycore_structseq.h gh-107211: No longer export internal functions (4) (#107217) 2023-07-25 03:16:28 +00:00
pycore_symtable.h gh-124697: Represent inlined comprehensions as subscopes in the symbol table (#156819) 2026-09-23 20:31:57 +01:00
pycore_sysmodule.h gh-152132: Enhance Py_RunMain() and fix bugs (#153461) 2026-07-10 01:29:53 +02:00
pycore_template.h
pycore_time.h Remove internal _PyTime_AsLong() function (#141053) 2025-11-05 18:37:06 +01:00
pycore_token.h gh-151464: exclude '<>' token from tokenize output (#154854) 2026-09-25 19:51:59 +01:00
pycore_traceback.h gh-145559: Add PyUnstable_DumpTraceback() and PyUnstable_DumpTracebackThreads() (#148145) 2026-05-06 15:01:12 +00:00
pycore_tracemalloc.h gh-155725: Remove PyGILState_Ensure usage from tracemalloc (#156409) 2026-08-30 13:04:55 +05:30
pycore_tstate.h gh-142349: Simplify lazy import resolution (#158282) 2026-10-01 16:20:45 +00:00
pycore_tuple.h
pycore_typecache.h
pycore_typedefs.h gh-130931: Add pycore_typedefs.h internal header (#131396) 2025-03-19 15:23:32 +01:00
pycore_typeobject.h gh-145685: per-type method cache implementation (#150160) 2026-07-21 14:11:22 +05:30
pycore_typevarobject.h gh-119180: Add evaluate functions for type params and type aliases (#122212) 2024-07-27 17:24:10 +00:00
pycore_ucnhash.h
pycore_unicodectype.h gh-129117: Add unicodedata.isxidstart() function (#140269) 2025-10-30 10:18:12 +00:00
pycore_unicodeobject.h gh-157407: Use _PyUnicode_AsUTF8NoNUL for AC 's' and 'z' converters (#158210) 2026-10-05 17:03:27 +00:00
pycore_unicodeobject_generated.h gh-154194: Degrade frames in Tachyon instead of failing the sample (#154195) 2026-10-05 00:37:21 +00:00
pycore_unionobject.h
pycore_uniqueid.h
pycore_uop.h GH-148960: Reduce the size of the debug stencils to less than half. (GH-150551) 2026-06-01 17:56:16 +01:00
pycore_uop_ids.h
pycore_uop_metadata.h
pycore_warnings.h GH-131238: Core header refactor (GH-131250) 2025-03-17 09:19:04 +00:00
pycore_wasm_trampoline.h
pycore_weakref.h gh-135607: remove null checking of weakref list in dealloc of extension modules and objects (#135614) 2025-06-30 11:14:31 +00:00