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
pgpv1mT2eMl0z.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list
