Reload Tricks

Alex Martelli aleaxit at yahoo.com
Sat Jan 22 03:50:37 EST 2005


Kamilche <klachemin at comcast.net> wrote:

> I want my program to be able to reload its code dynamically. I have a
> large hierarchy of objects in memory. The inheritance hierarchy of
> these objects are scattered over several files.

Michael Hudson has a nice custom metaclass for that in Activestate's
online cookbook -- I made some enhancements to it as I edited it for the
forthcoming 2nd edition of the cookbook (due out in a couple of months),
but the key ideas are in the online version too (sorry, no URL at hand).


Alex



More information about the Python-list mailing list