MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / lookup

Function lookup

example_code/item_088.py:95–99  ·  view source on GitHub ↗
(my_key)

Source from the content-addressed store, hash-verified

93
94print("Example 5")
95def lookup(my_key):
96 try:
97 return my_dict[my_key]
98 except KeyError:
99 raise MissingError
100
101
102print("Example 6")

Callers 1

item_088.pyFile · 0.85

Calls 1

contact_serverFunction · 0.85

Tested by

no test coverage detected