Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ WithName
Class
WithName
Lib/test/test_weakref.py:139–142 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
137
138
# test type with __name__
139
class
WithName:
140
@property
141
def
__name__(self):
142
return
"custom_name"
143
144
obj2 = WithName()
145
ref2 = weakref.ref(obj2)
Callers
1
test_ref_repr
Method · 0.85
Calls
no outgoing calls
Tested by
1
test_ref_repr
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…