Alex Martelli wrote:
> 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'})

and George Sakkis said something similar.

Thanks, both of you. As I expected, there was a much better way than my 
clumsy way. Anyway, this took me to section 3.3.3 in the reference 
manual, and that will help me further.

Thanks again. Back to the keyboard!

/MiO
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to