Mikael Olofsson <[EMAIL PROTECTED]> wrote: ... > Any ideas? Am I stuck with the clumsy exec-solution, or are there other > ways to dynamically generate doc-strings of classes?
The best way to make classes on the fly is generally to call the metaclass with suitable parameters (just like, the best way to make instances of any type is generally to call that type): derived = type(base)('derived', (base,), {'__doc__': 'zipp'}) Alex -- http://mail.python.org/mailman/listinfo/python-list