def alias(attrname):
    def func(self, *args, **kwds):
        return getattr(self, attrname)(*args, **kwds)
    return func
Returns a function which calls 'attrname' - for function aliasing.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/South-1.0.2/south/db/generic.py/alias