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