-
- Downloads
gh-94673: Add Per-Interpreter tp_weaklist for Static Builtin Types (#95302)
* Store tp_weaklist on the interpreter state for static builtin types. * Factor out _PyStaticType_GET_WEAKREFS_LISTPTR(). * Add _PyStaticType_ClearWeakRefs(). * Add a comment about how _PyStaticType_ClearWeakRefs() loops. * Document the change. * Update Doc/whatsnew/3.12.rst * Fix a typo.
Showing
- Doc/c-api/typeobj.rst 7 additions, 0 deletionsDoc/c-api/typeobj.rst
- Doc/whatsnew/3.12.rst 7 additions, 0 deletionsDoc/whatsnew/3.12.rst
- Include/cpython/object.h 1 addition, 1 deletionInclude/cpython/object.h
- Include/internal/pycore_object.h 6 additions, 0 deletionsInclude/internal/pycore_object.h
- Include/internal/pycore_typeobject.h 13 additions, 0 deletionsInclude/internal/pycore_typeobject.h
- Objects/typeobject.c 6 additions, 0 deletionsObjects/typeobject.c
- Objects/weakrefobject.c 19 additions, 0 deletionsObjects/weakrefobject.c
Loading
Please register or sign in to comment