Correct me if I'm wrong, but I think the OP was asking if metaclasses work with old-style classes, not new-style.
[EMAIL PROTECTED] wrote: > This may be a limitation Zope imposes. > > I wrote this program: > #----------------------------------------------------------------------- > class M(type): > def __new__(*args): > print "new M", args > > class T(object): > __metaclass__ = M > #----------------------------------------------------------------------- > > Running it prints > new M (<class '__main__.M'>, 'T', (<type 'object'>,), > {'__module__': '__main__', '__metaclass__': <class '__main__.M'>}) > ... so you can see that the __metaclass__ mechanism works just fine with > new-style objects in plain Python. > > Jeff -- http://mail.python.org/mailman/listinfo/python-list