mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	|  350c58ba4e Fix a bug caused by the garbage collector clearing weakrefs too early. The weakrefs in the ``tp_subclasses`` dictionary are needed in order to correctly invalidate type caches (for example, by calling ``PyType_Modified()``). Clearing weakrefs before calling finalizers causes the caches to not be correctly invalidated. That can cause crashes since the caches can refer to invalid objects. Defer the clearing of weakrefs without callbacks until after finalizers are executed. | ||
|---|---|---|
| .. | ||
| images | ||
| asyncio.md | ||
| changing_grammar.md | ||
| code_objects.md | ||
| compiler.md | ||
| exception_handling.md | ||
| frames.md | ||
| garbage_collector.md | ||
| generators.md | ||
| interpreter.md | ||
| jit.md | ||
| parser.md | ||
| qsbr.md | ||
| README.md | ||
| string_interning.md | ||
CPython Internals Documentation
The documentation in this folder is intended for CPython maintainers. It describes implementation details of CPython, which should not be assumed to be part of the Python language specification. These details can change between any two CPython versions and should not be assumed to hold for other implementations of the Python language.
The core dev team attempts to keep this documentation up to date. If it is not, please report that through the issue tracker.