Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ keys
Method
keys
Lib/weakref.py:179–182 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
177
yield
k, v
178
179
def
keys(self):
180
for
k, wr in self.data.copy().items():
181
if
wr() is not None:
182
yield
k
183
184
__iter__ = keys
185
Callers
2
test_make_weak_valued_dict_misc
Method · 0.95
test_weak_valued_dict_update
Method · 0.95
Calls
2
items
Method · 0.45
copy
Method · 0.45
Tested by
2
test_make_weak_valued_dict_misc
Method · 0.76
test_weak_valued_dict_update
Method · 0.76