Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99357
| From | israel <israel@eraalaska.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Bi-directional sub-process communication |
| Date | 2015-11-24 06:33 -0900 |
| Organization | Era Alaska |
| Message-ID | <mailman.7.1448379698.20593.python-list@python.org> (permalink) |
| References | <20151124052512.GA51713@cskk.homeip.net> <20151124052905.GA41045@cskk.homeip.net> |
On 11/23/2015 20:29, Cameron Simpson wrote: > 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() 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@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
Re: Bi-directional sub-process communication israel <israel@eraalaska.net> - 2015-11-24 06:33 -0900
csiph-web