Re: Reload Tricks

2005-01-23 Thread Alex Martelli
Kamilche <[EMAIL PROTECTED]> wrote: > Well, I look forward to seeing the new version. I have the old version > of the Python cookbook, it was very useful! I hope the new one is even better -- many more recipes, all updated to Python 2.3 and 2.4. The old one will remain useful for all those who n

Re: Reload Tricks

2005-01-23 Thread Kamilche
Well, I look forward to seeing the new version. I have the old version of the Python cookbook, it was very useful! -- http://mail.python.org/mailman/listinfo/python-list

Re: Reload Tricks

2005-01-22 Thread Michael Spencer
Kamilche 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 Spencer wrote: An alternative approach (with some pros and cons) is to modify the class in

Re: Reload Tricks

2005-01-22 Thread Alex Martelli
Kamilche <[EMAIL PROTECTED]> 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 o

Re: Reload Tricks

2005-01-21 Thread Kamilche
Would it be possible to just not copy any attribute that starts and ends with '__'? Or are there some important attributes being copied? -- http://mail.python.org/mailman/listinfo/python-list

Re: Reload Tricks

2005-01-21 Thread Kamilche
That's a powerful advantage - not having to track class instances. Thanks for the tip! I just got done doing it 'my way' though, now I'll have to change it. It took me all day! :-D -- http://mail.python.org/mailman/listinfo/python-list

Re: Reload Tricks

2005-01-21 Thread Michael Spencer
Kamilche 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. I find that after reloading the appropriate files, and overwriting the __class__ of object instanc

Reload Tricks

2005-01-21 Thread Kamilche
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. I find that after reloading the appropriate files, and overwriting the __class__ of object instances, one more th