4 ms·
The reason that is gross is that you are essentially creating a new class each time you call it, instead of just creating an instance. Plus, if we really wante
by kazagistar 12y ago
The reason that is gross is that you are essentially creating a new class each time you call it, instead of just creating an instance.
Plus, if we really wanted to, we could do something insane, like
def window_repr(self):
return '<%s..%s>' % (self.__closure__[0], self.__closure__[1])
... but we are trying to program in python. We have standards.