[EMAIL PROTECTED] wrote:
> However I do think the solution to my problem lies with
> them since I have to dynamically generate a class and metaclasses
> provide a mechanism for doing this.
You rarely need a custom metaclass to generate classes. A class factory
def makeclass(classname, *attributes):
cls = type(classname, mybases, mydic)
for name, value in attributes:
setattr(cls, name, attr)
return cls
is the typical solution for your use case.
OTOH, if you are looking for use classes for metaclasses, look at the
Python Wiki
and use Google.
Michele Simionato
--
http://mail.python.org/mailman/listinfo/python-list