def __getitem__(self, item):
        if isinstance(item, int):
            try:
                return next(islice(self, item, item+1))
            except __HOLE__:
                raise IndexError('index out of range')
        elif isinstance(item, slice):
            return islice(self, item.start, item.stop, item.step)
dataset/ETHPy150Open alimanfoo/petl/petl/util/base.py/IterContainer.__getitem__