Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ inverse_lookup
Function
inverse_lookup
Tools/unicode/dawg.py:487–489 ·
view source on GitHub ↗
(packed, inverse, x)
Source
from the content-addressed store, hash-verified
485
raise
KeyError
486
487
def
inverse_lookup(packed, inverse, x):
488
pos = inverse[x]
489
return
_inverse_lookup(packed, pos)
490
491
def
_inverse_lookup(packed, pos):
492
result = bytearray()
Callers
2
test_dawg_direct_simple
Method · 0.90
build_compression_dawg
Function · 0.85
Calls
1
_inverse_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…