MCPcopy 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
181class Pictures(dict):
182 def __missing__(self, key):
183 value = open_picture(key)
184 self[key] = value
185 return value
186
187pictures = Pictures()
188handle = pictures[path]

Callers 1

item_028.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected