Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __init__
Method
__init__
Lib/test/test_functools.py:3644–3645 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
3642
_cost = 1
3643
3644
def
__init__(self):
3645
self.lock = py_functools.RLock()
3646
3647
@py_functools.cached_property
3648
def
cost(self):
Callers
nothing calls this directly
Calls
1
RLock
Method · 0.80
Tested by
no test coverage detected