Binding the names in a module in a class instance

2005-05-22 Thread Jacob H
Hello all, I would like to be able to take a module full of class instances, functions, etc and bind all its names to a separate container class in a different module. I have come up with the following way to do it.. (module "globals") class Container: pass container = Container() (module "

Help with saving and restoring program state

2005-01-24 Thread Jacob H
Hello list... I'm developing an adventure game in Python (which of course is lots of fun). One of the features is the ability to save games and restore the saves later. I'm using the pickle module to implement this. Capturing current program state and neatly replacing it later is proving to be tri