Metaclass discussons

Gustavo Niemeyer niemeyer at conectiva.com
Sun Aug 24 20:56:44 EDT 2003


Hello Michele!

> class object(object):
>     class __metaclass__(type):
>         pass

Thanks for the hint! After sending I found out that it should have
the real object as parent. OTOH, your nested definition is really
elegant! :-)

-- 
Gustavo Niemeyer
http://niemeyer.net





More information about the Python-list mailing list