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
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
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
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
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
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
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
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