1 2 3 4 5 6 7
class Model(object): def __init__(self, name=None): object.__init__(self) if name is None: self.name = self.__class__.__name__ else: self.name = name