Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ RefCycle
Class
RefCycle
Lib/test/test_weakref.py:70–72 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
68
69
70
class
RefCycle:
71
def
__init__(self):
72
self.cycle = self
73
74
75
class
TestBase(unittest.TestCase):
Callers
6
check_len_cycles
Method · 0.70
check_len_race
Method · 0.70
test_threaded_weak_valued_setdefault
Method · 0.70
test_threaded_weak_valued_pop
Method · 0.70
test_threaded_weak_valued_consistency
Method · 0.70
test_weak_valued_consistency
Method · 0.70
Calls
no outgoing calls
Tested by
6
check_len_cycles
Method · 0.56
check_len_race
Method · 0.56
test_threaded_weak_valued_setdefault
Method · 0.56
test_threaded_weak_valued_pop
Method · 0.56
test_threaded_weak_valued_consistency
Method · 0.56
test_weak_valued_consistency
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…