Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ get_spam
Function
get_spam
src/8/creating_cached_instances/example2.py:20–21 ·
view source on GitHub ↗
(name)
Source
from the content-addressed store, hash-verified
18
Spam.manager = CachedSpamManager()
19
20
def
get_spam(name):
21
return
Spam.manager.get_spam(name)
22
23
if
__name__ ==
'__main__'
:
24
a = get_spam(
'foo'
)
Callers
1
example2.py
File · 0.70
Calls
1
get_spam
Method · 0.80
Tested by
no test coverage detected