Jan-Ole Esleben wrote: > class Meta(type): > def __new__(cls, name, bases, d): > d['classvar'] = [] > return type.__new__(cls, name, bases, d)
The problem is that __new__ is called upon object construction, not class definition, but you're trying to set the class variables at definition-time. -- http://mail.python.org/mailman/listinfo/python-list