Re: Binding the names in a module in a class instance

2005-05-23 Thread Neal Norwitz
Jacob H wrote: > 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.. [snip] > I feel uneasy about this method. I foresee bad

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 "