

def __getitem__(self, index):
    val = self._list_obj[index]
    if (not val):
        data = self._list_data[index]
        if isinstance(data, tuple):
            (key, value) = data
            self._list_obj[index] = (self.to_object(key), self.to_object(value))
        else:
            self._list_obj[index] = self.to_object(data)
        return self._list_obj[index]

dataset/ETHPy150Open hazelcast/hazelcast-python-client/hazelcast/util.py ImmutableLazyDataList.__getitem__/original