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
On Mar 9, 4:21 pm, ET wrote:
> 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:
snip
> > Here's what we have to work with from you:
>
> > > > > > > The problem, as briefly as possible:
> > > > > > >
On Mar 9, 4:21 pm, ET wrote:
> 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:
snip
> > Here's what we have to work with from you:
>
> > > > > > > The problem, as briefly as possible:
> > > > > > >
12:00:40 -0700 (PDT)
> > > > > From: Aaron Brady
> > > > > Subject: Re: Sharing objects between processes
> > > > > To: python-l...@python.org
> > > > > Message-ID:
> > > > ><5514c3df-d74e-47d8-93fc-34dd5119e...@c11g2000yqj.googlegro
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 12:00:40 -0700 (PDT)
> > > > From: Aaron Brady
> > > > Subject: R
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
> >
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
> > To: python-l...@python.org
> > Message-ID:
> > <5514c3df-d74e-47d8-9
> Message: 2
> Date: Sun, 8 Mar 2009 12:00:40 -0700 (PDT)
> From: Aaron Brady
> Subject: Re: Sharing objects between processes
> To: python-list@python.org
> Message-ID:
> <5514c3df-d74e-47d8-93fc-34dd5119e...@c11g2000yqj.googlegroups.com>
> Content-Type:
> 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
>
&
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've been having trouble getting my
> processes to share an object in a similar way.
>
ET wrote:
Using the 'with' keyword didn't work...
Just an aside here for any multiprocessing maintainers
watching ;) . I expect that the "didn't work" here
refers to this bug:
http://bugs.python.org/issue5261
Altho' if the OP cares to clarify, it might be something
else.
TJG
--
http://mail.
11 matches
Mail list logo