Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/fluentpython/example-code-2e
/ index.py
File
index.py
03-dict-set/index.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# adapted from Alex Martelli's example in "Re-learning Python"
2
# http://www.aleax.it/Python/accu04_Relearn_Python_alex.pdf
3
# (slide 41) Ex: lines-by-word file index
4
Callers
nothing calls this directly
Calls
2
setdefault
Method · 0.80
append
Method · 0.45
Tested by
no test coverage detected