◐ Shell
clean mode source ↗

[3.8] bpo-38006: Clear weakrefs in garbage found by the GC (GH-16495) by miss-islington · Pull Request #16499 · python/cpython

Fix a bug due to the interaction of weakrefs and the cyclic garbage
collector. We must clear any weakrefs in garbage in order to prevent
their callbacks from executing and causing a crash.
(cherry picked from commit bcda460)

Co-authored-by: Neil Schemenauer nas-github@arctrix.com

https://bugs.python.org/issue38006