Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #99294

Re: Bi-directional sub-process communication

From Cameron Simpson <cs@zip.com.au>
Newsgroups comp.lang.python
Subject Re: Bi-directional sub-process communication
Date 2015-11-24 16:29 +1100
Message-ID <mailman.85.1448342960.2291.python-list@python.org> (permalink)
References <20151124052512.GA51713@cskk.homeip.net>

Show all headers | View raw


On 24Nov2015 16:25, Cameron Simpson <cs@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@zip.com.au>

Maintainer's Motto: If we can't fix it, it ain't broke.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Bi-directional sub-process communication Cameron Simpson <cs@zip.com.au> - 2015-11-24 16:29 +1100

csiph-web