Followup: big projects, games, reload

Jeremy Hylton jeremy at alum.mit.edu
Wed Mar 31 21:38:04 CEST 2004


On Wed, 2004-03-31 at 14:32, Terry Reedy wrote:
> "Redefining methods:
> 
> One of the truly powerful features of Panda3D is that you can stop a
> simulation, redefine a method, and start from that point again. This is
> done using Python features. Panda3D recursively digs through namespaces to
> find the definition of the class or methods and then swaps them for the
> new, thus rebinding the new version. There is also special code written to
> dig out all the stored function pointers, such as events and tasks, and
> replace those as well."
> 
> I think this nicely illustrates what I saw as the conclusion of the reload
> thread: if one wants a reload function that does exactly what one wants in
> a particular application, one should write it oneself, and with effect, one
> can do so.

I didn't follow the reload thread, but it sounds like the Panda3D
implementation provides what people want from reload most of the time. 
I don't know how much their implementation is specialized to their
system, but it might be nice to seem similar functionality available for
other systems (in the library or the cookbook or something).

Jeremy






More information about the Python-list mailing list