Bi-directional sub-process communication

Cameron Simpson cs at zip.com.au
Tue Nov 24 00:29:05 EST 2015


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

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