pickling instances of metaclass generated classes

Ian Kelly ian.g.kelly at gmail.com
Fri Dec 30 12:09:35 EST 2011


On Fri, Dec 30, 2011 at 9:51 AM, lars van gemerden <lars at rational-it.com> wrote:
> I still wonder whether it might be easier to add the class to the
> namespace. Can anyone help me with that?

from mypackage import mymodule

setattr(mymodule, myclass.__name__, myclass)



More information about the Python-list mailing list