MCPcopy 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
487def inverse_lookup(packed, inverse, x):
488 pos = inverse[x]
489 return _inverse_lookup(packed, pos)
490
491def _inverse_lookup(packed, pos):
492 result = bytearray()

Callers 2

build_compression_dawgFunction · 0.85

Calls 1

_inverse_lookupFunction · 0.85

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…