Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ get_animals
Function
get_animals
example_code/item_111.py:59–62 ·
view source on GitHub ↗
(database, species)
Source
from the content-addressed store, hash-verified
57
pass
58
59
def
get_animals(database, species):
60
# Query the Database
61
raise
DatabaseConnectionError(
"Not connected"
)
62
# Return a list of (name, last_mealtime) tuples
63
64
65
print(
"Example 2"
)
Callers
2
item_111.py
File · 0.85
do_rounds
Function · 0.85
Calls
1
DatabaseConnectionError
Class · 0.85
Tested by
no test coverage detected