Karlo Lozovina wrote:

> Yes, I can do a:
>   class tmp(First):
>       pass
> 
> but I'd rather make a copy than a subclass.

> tmp = new.classobj('tmp', (First,), {})

That line creates a subclass just as the simpler approach you gave above.

Peter


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

Reply via email to