def get_list(self, index):
        """Return (list, index) for the sublist where index falls."""
        if isinstance(index, slice):
            # XXX needs support for slices
            raise NotImplementedError
        index_orig = index
        if index < 0:
            index = len(self) + index
        for lst in self.lists:
            if index < len(lst):
                return lst, index
            index = index - len(lst)
        raise IndexError(index_orig)
Return (list, index) for the sublist where index falls.
recipes/Python/578190_ChainedList_ChainedListView_Exposing_Multiple/recipe-578190.py