Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bslatkin/effectivepython
/ Pictures
Class
Pictures
example_code/item_028.py:181–185 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
179
raise
180
181
class
Pictures(dict):
182
def
__missing__(self, key):
183
value = open_picture(key)
184
self[key] = value
185
return
value
186
187
pictures = Pictures()
188
handle = pictures[path]
Callers
1
item_028.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected