multiple extensions to a class

Oliver Schoenborn oliver.schoenborn at utoronto.ca
Thu Jul 15 00:11:43 EDT 2004


Okay, well thanks a million to all who replied. Basically either

- mixins with dynamic type construction via type(), which I didn't know was
possible
- decorators (seems similar to delegates)
- whatever I can come up with; so far, dynamically adding methods to a
class, this has similar advantages to decoration, but shares one advantage
of mixins, i.e. direct dispatch rather than having to go through a list

Cheers,
Oliver




More information about the Python-list mailing list