Sharing objects between processes

2009-03-08 Thread ET
I have been using the 'threading' library and decided to try swapping it out for 'processing'... while it's awesome that processing so closely mirrors the threading interface, I've been having trouble getting my processes to share an object in a similar way. Using the 'with' keyword didn't work, a

Re: Sharing objects between processes

2009-03-09 Thread ET
> Message: 1 > Date: Sun, 08 Mar 2009 18:47:09 + > From: Tim Golden > Subject: Re: Sharing objects between processes > Cc: python-list@python.org > Message-ID: <49b412ad.1030...@timgolden.me.uk> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > &

Re: Sharing objects between processes

2009-03-09 Thread ET
text/plain; charset=ISO-8859-1 > > On Mar 8, 1:36?pm, ET wrote: > > I have been using the 'threading' library and decided to try swapping it > > out for 'processing'... while it's awesome that processing so closely > > mirrors the threading interface, I&

Re: Sharing objects between processes

2009-03-09 Thread ET
On Mon, 2009-03-09 at 11:04 -0700, Aaron Brady wrote: > On Mar 9, 12:47 pm, ET wrote: > > > Message: 2 > > > Date: Sun, 8 Mar 2009 12:00:40 -0700 (PDT) > > > From: Aaron Brady > > > Subject: Re: Sharing objects between processes > >

Re: Sharing objects between processes

2009-03-09 Thread ET
On Mon, 2009-03-09 at 13:58 -0700, Aaron Brady wrote: > On Mar 9, 2:17 pm, ET wrote: > > On Mon, 2009-03-09 at 11:04 -0700, Aaron Brady wrote: > > > On Mar 9, 12:47 pm, ET wrote: > > > > > Message: 2 > > > > > Date: Sun, 8 Mar 2009

Re: Sharing objects between processes

2009-03-09 Thread ET
On Mon, 2009-03-09 at 14:57 -0700, Aaron Brady wrote:\ > > import threading > import time > > > class Globals: > cont= True > content= { } > lock_content= threading.Lock( ) > > def read( ): > out= open( 'temp.txt', 'w' ) > while Globals.cont: > with