Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ do_work
Method
do_work
Lib/test/test_gc.py:706–711 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
704
self.attr = None
705
706
def
do_work():
707
a = A()
708
b = B(A())
709
710
a.attr = b
711
b.attr = a
712
713
do_work()
714
gc.collect()
# this blows up (bad C pointer) when it fails
Callers
nothing calls this directly
Calls
2
A
Class · 0.70
B
Class · 0.70
Tested by
no test coverage detected