[Python-Help] imp.load_module from a string
Chris Withers
chrisw at nipltd.com
Mon Jul 10 10:16:43 EDT 2000
Martin von Loewis wrote:
<snip very useful response>
Thanks! :-)
That answered my questions and more. The response time was also more
than impressive ;-)
> > ...what happens to objects created from old MyModule code?...
>
> The objects stay the same. When the reference to the module is
> release, class objects still remain as long as instance objects refer
> to the class.
Hmmm, some of these classes are being used to unpickle objects sent from
the server. I guess I just have to make sure the right version of the
module is in sys.modules when I unpickle the object?
thanks again for all the help,
Chris
More information about the Python-list
mailing list