Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ lookup
Function
lookup
Tools/unicode/dawg.py:452–453 ·
view source on GitHub ↗
(packed, data, s)
Source
from the content-addressed store, hash-verified
450
return
True
451
452
def
lookup(packed, data, s):
453
return
data[_lookup(packed, s)]
454
455
def
_lookup(packed, s):
456
stringpos = 0
Callers
2
test_dawg_direct_simple
Method · 0.90
build_compression_dawg
Function · 0.70
Calls
1
_lookup
Function · 0.85
Tested by
1
test_dawg_direct_simple
Method · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…