def auto_repr(cls):
    'Decorator for a class to assign it an automagic quick and dirty __repr__\n\n    It uses public class attributes to prepare repr of a class\n\n    Original idea: http://stackoverflow.com/a/27799004/1265472\n    '
    cls.__repr__ = __auto_repr__
    return cls
Decorator for a class to assign it an automagic quick and dirty __repr__

It uses public class attributes to prepare repr of a class

Original idea: http://stackoverflow.com/a/27799004/1265472
def auto_repr(cls):
    'Decorator for a class to assign it an automagic quick and dirty __repr__\n\n    It uses public class attributes to prepare repr of a class\n\n    Original idea: http://stackoverflow.com/a/27799004/1265472\n    '
    cls.__repr__ = __auto_repr__
    return cls