Automatic methods in new-style classes
Hey, I have the following code that has to send every command it receives to a list of backends. Instead of: class MultiBackend(object): """Renders to multiple backends""" def __init__(self, backends): self.backends = backends def flush(self): for b in self.backends:
Re: Automatic methods in new-style classes
The metaclass approach seems to be the one I was looking for. Thanks! Bert -- http://mail.python.org/mailman/listinfo/python-list