def __getitem__(self, f):
        if isinstance(f, int):
            idx = f
        elif f in self.flds:
            idx = self.flds.index(f)
        else:
            raise ArgumentError('item ' + repr(f) +
                                ' not in fields ' + repr(self.flds))
        try:
            return super(Record, self).__getitem__(idx)
        except __HOLE__:  # handle short rows
            return self.missing
dataset/ETHPy150Open alimanfoo/petl/petl/util/base.py/Record.__getitem__