Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ MyFinalizer
Class
MyFinalizer
Lib/test/test_weakref.py:2224–2225 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2222
def
test_all_freed(self):
2223
# we want a weakrefable subclass of weakref.finalize
2224
class
MyFinalizer(weakref.finalize):
2225
pass
2226
2227
a = self.A()
2228
res = []
Callers
1
test_all_freed
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_all_freed
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…