Re: Borg vs. Module

2006-08-01 Thread Carl Banks
tobiah wrote: > I am making a web app, made up of many modules > that all need access to some important data, like > the current session data, cookies, navigation history, > post/get variables, etc. > > I decided to go with the 'Borg' idea, by assigning the > __dict__ of an object to a class variab

Re: Borg vs. Module

2006-08-01 Thread Simon Hibbs
Jordan R McCoy wrote: > For example, the Twisted framework uses this technique to allow global > access to the installed reactor via import syntax, which works well > within the framework. It did, however, throw me a bit when I first > encountered it, and drove me to pour over the source to find

RE: Borg vs. Module

2006-07-31 Thread Jordan R McCoy
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of tobiah Sent: Monday, July 31, 2006 2:52 PM To: python-list@python.org Subject: Borg vs. Module I am making a web app, made up of many modules that all need access to some important data, like the current session data, cookies, navigation h

Borg vs. Module

2006-07-31 Thread tobiah
I am making a web app, made up of many modules that all need access to some important data, like the current session data, cookies, navigation history, post/get variables, etc. I decided to go with the 'Borg' idea, by assigning the __dict__ of an object to a class variable so that each instantiati