decorating classes with metaclass

Simon Percivall percivall at gmail.com
Mon Mar 14 21:36:35 EST 2005


Class decoration was discussed back when (you can search for the thread
in python-dev); not as an alias to metaclasses but discussed as having
exactly the same semantics as function decoration. Maybe the idea has
more merit as being another way of setting the __metaclass__ attribute;
on the other hand: it doesn't increase visibility and what is does and
how it does it is very different from that of function decoration; so
perhaps not.




More information about the Python-list mailing list