Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz/python-cookbook
/ example2.py
File
example2.py
src/8/creating_cached_instances/example2.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
weakref
2
3
class
CachedSpamManager:
4
def
__init__(self):
Callers
nothing calls this directly
Calls
2
CachedSpamManager
Class · 0.85
get_spam
Function · 0.70
Tested by
no test coverage detected