mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
fed2af6f9e
GH-91636: Clear weakrefs created by finalizers. (GH-136401)
Weakrefs to unreachable garbage that are created during running of
finalizers need to be cleared. This avoids exposing objects that
have `tp_clear` called on them to Python-level code.
(cherry picked from commit b6b99bf7f1)
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Miscellaneous source files for the main Python shared library