Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ W
Class
W
Lib/test/test_descr.py:1347–1348 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1345
weakref.ref(a)
1346
1347
class
W(object):
1348
__slots__ = [
"__weakref__"
]
1349
a = W()
1350
self.assertHasAttr(a,
"__weakref__"
)
1351
self.assertNotHasAttr(a,
"__dict__"
)
Callers
3
test_slots_special
Method · 0.70
test_slots_special_before_items
Method · 0.70
test_slots_special_after_items
Method · 0.70
Calls
no outgoing calls
Tested by
3
test_slots_special
Method · 0.56
test_slots_special_before_items
Method · 0.56
test_slots_special_after_items
Method · 0.56