RE: 'Borg' and multiple threads.

2008-01-09 Thread Reedick, Andrew
> -Original Message- > From: [EMAIL PROTECTED] [mailto:python- > [EMAIL PROTECTED] On Behalf Of Tobiah > Sent: Monday, January 07, 2008 5:24 PM > To: python-list@python.org > Subject: 'Borg' and multiple threads. > > I have a class that I call Borg that

Re: 'Borg' and multiple threads.

2008-01-08 Thread Mike Mazur
Hi, On Jan 8, 2008 7:24 AM, Tobiah <[EMAIL PROTECTED]> wrote: > I have a class that I call Borg that starts like this: > > class Borg(dict): > > static_state = {} > def __init__(self): > self.__dict__ = self.static_state > > > so that I can access the same data from

'Borg' and multiple threads.

2008-01-08 Thread Tobiah
I have a class that I call Borg that starts like this: class Borg(dict): static_state = {} def __init__(self): self.__dict__ = self.static_state so that I can access the same data from anywhere within any module or function just by instantiating one. This is use