mirror of
https://github.com/python/cpython.git
synced 2026-06-26 12:54:12 -04:00
c916f5a390
and functions: we only need to call PyObject_ClearWeakRefs() if the weakref list is non-NULL. Since these objects are common but weakrefs are still unusual, saving the call at deallocation time makes a lot of sense.