def __getitem__(self, item):
        try:
            offset, things = next((k, v) for k, v in self.offsets if item >= k)
            return things[item - offset]
        except StopIteration:
            raise IndexError(item)
dataset/ETHPy150Open tych0/xcffib/module/__init__.py/OffsetMap.__getitem__/original