> -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
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
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