MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / _PyWeakref_ClearRef

Function _PyWeakref_ClearRef

Objects/weakrefobject.c:88–100  ·  view source on GitHub ↗

Cyclic gc uses this to *just* clear the passed-in reference, leaving * the callback intact and uncalled. It must be possible to call self's * tp_dealloc() after calling this, so self has to be left in a sane enough * state for that to work. We expect tp_dealloc to decref the callback * then. The reason for not letting clear_weakref() decref the callback * right now is that if the callback

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

weakrefobject.hFile · 0.85
handle_weakrefsFunction · 0.85
subtype_deallocFunction · 0.85
instance_deallocFunction · 0.85

Calls 1

clear_weakrefFunction · 0.85

Tested by

no test coverage detected