Re: [Web-SIG] Global Variables

2005-09-10 Thread Titus Brown
-> I second the statement about multi-threading headaches if you use -> globals in this way. -> -> In Aquarium, since I have to support different threading API's (no -> threads, Python threads, coroutines), I put everything in a Context -> object, and then pass that Context object to everything's

Re: [Web-SIG] Global Variables

2005-09-10 Thread Shannon -jj Behrens
I second the statement about multi-threading headaches if you use globals in this way. In Aquarium, since I have to support different threading API's (no threads, Python threads, coroutines), I put everything in a Context object, and then pass that Context object to everything's constructor. This

Re: [Web-SIG] Global Variables

2005-09-09 Thread Robert Brewer
Timothy Soehnlin wrote: > I am working on an ongoing project, and recently > merged all the different segments of the request into a > single variable. To propogate that variable,across function > calls, and imported modules, I had to pass it as a variable > to each function. As is visible, th