Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
94
print(
"Example 5"
)
95
def
lookup(my_key):
96
try
:
97
return
my_dict[my_key]
98
except
KeyError:
99
raise
MissingError
100
101
102
print(
"Example 6"
)
Callers
1
item_088.py
File · 0.85
Calls
1
contact_server
Function · 0.85
Tested by
no test coverage detected