Create classes at runtnime

Miki Tebeka miki.tebeka at
Sat Feb 5 12:49:52 EST 2011

> I need to create a pretty complex class at runtime.
You can take the approach that namedtuple does and create a python code for the class as string and then exec it. See


More information about the Python-list mailing list