Persist a class (not an instance)

Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Fri Nov 25 12:00:25 EST 2005


Kent Johnson enlightened us with:
> OK that confirms that pickle won't work. Is there another approach
> that will?

Well, since the classes are created at runtime as well, you could
compile them using the appropriate API and call exec() on them.

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa



More information about the Python-list mailing list