Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ clear
Method
clear
Lib/test/test_functools.py:2682–2683 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2680
self.set_ops.append(key)
2681
self.data[key] = value
2682
def
clear(self):
2683
self.data.clear()
2684
2685
td = TracingDict()
2686
with
support.swap_attr(weakref,
"WeakKeyDictionary"
,
lambda
: td):
Callers
nothing calls this directly
Calls
1
clear
Method · 0.45
Tested by
no test coverage detected