Bi-directional sub-process communication

israel israel at eraalaska.net
Tue Nov 24 10:33:03 EST 2015


On 11/23/2015 20:29, Cameron Simpson wrote:
> On 24Nov2015 16:25, Cameron Simpson <cs at zip.com.au> wrote:
>> Completely untested example code:
>>>> class ReturnEvent:
>> def __init__(self):
>> self.event = Event()
>> With, of course:
>> def wait(self):
> return self.event.wait()

Of course :-) Ah, the Event() object comes from the threading module. 
That makes sense. This should work perfectly. Thanks so much for taking 
the time to help me out!
---------
Israel Brewster
>> Cheers,
> Cameron Simpson <cs at zip.com.au>
>> Maintainer's Motto: If we can't fix it, it ain't broke.



More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /