Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ keys
Method
keys
Lib/weakref.py:372–376 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
370
yield
key, value
371
372
def
keys(self):
373
for
wr in self.data.copy():
374
obj = wr()
375
if
obj is not None:
376
yield
obj
377
378
__iter__ = keys
379
Callers
2
test_weak_keyed_delitem
Method · 0.95
test_weak_keyed_cascading_deletes
Method · 0.95
Calls
1
copy
Method · 0.45
Tested by
2
test_weak_keyed_delitem
Method · 0.76
test_weak_keyed_cascading_deletes
Method · 0.76