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