Re: [Zope] Changing a Z object's __class__ dynamically

2000-08-20 Thread Tino Wildenhain
hi ... > I don't know what exactly is going on. My conjectures are: (1) Digicool > people have re-written Python's system function setattr(), so that when it > is an Z Object, the __class__ cannot be changed. (2) Caching: when I change > the class of a Z Object, somehow it does not reflected in

[Zope] Changing a Z object's __class__ dynamically

2000-08-19 Thread Hung Jung Lu
Hi, One powerful feature of Python is the ease of reloading modules. This makes debugging extremely nice, since you can modify the code, reload the module, and all this while the main program is still running. Moreover, if a particular instance object has been created, you can actually edit t