Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #99357
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | israel <israel@eraalaska.net> |
| Newsgroups | comp.lang.python |
| Subject | Re: Bi-directional sub-process communication |
| Date | Tue, 24 Nov 2015 06:33:03 -0900 |
| Organization | Era Alaska |
| Lines | 24 |
| Message-ID | <mailman.7.1448379698.20593.python-list@python.org> (permalink) |
| References | <20151124052512.GA51713@cskk.homeip.net> <20151124052905.GA41045@cskk.homeip.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de BP6W4FI3xaInzJs40j9ukAdcpCcJWbAUr6zlv95l9M+A== |
| Return-Path | <israel@eraalaska.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '---------': 0.05; 'subject:skip:c 10': 0.07; 'cc:addr:python-list': 0.09; "ain't": 0.09; 'subject:process': 0.09; ':-)': 0.12; 'def': 0.13; 'ah,': 0.16; 'cc:name:python': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'self.event': 0.16; 'simpson': 0.16; 'subject:sub': 0.16; 'threading': 0.16; 'wrote:': 0.16; 'cc:addr:python.org': 0.20; 'fix': 0.21; 'cc:2**1': 0.22; 'cheers,': 0.22; 'header:In-Reply-To:1': 0.24; 'header:User- Agent:1': 0.26; 'example': 0.26; 'module.': 0.27; 'code:': 0.29; "can't": 0.32; 'skip:_ 10': 0.32; 'class': 0.33; 'should': 0.36; 'subject:: ': 0.37; 'thanks': 0.37; 'subject:-': 0.39; 'course': 0.62; 'cameron': 0.66; 'received:12': 0.81; 'out!': 0.84 |
| X-Warning | RFC compliance checks disabled due to whitelist |
| X-Warning | Reverse-Path DNS check skipped due to whitelist |
| X-Warning | Maximum message size check skipped due to whitelist |
| X-Warning | Realtime Block Lists skipped due to whitelist |
| X-Warning | System filters skipped due to whitelist |
| X-Warning | Domain filters skipped due to whitelist |
| X-Warning | User filters skipped due to whitelist |
| X-Warning | Anti-Spam check skipped due to whitelist |
| X-Whitelist | 2147483645 |
| X-Envelope-From | israel@eraalaska.net |
| X-Envelope-To | python-list@python.org |
| In-Reply-To | <20151124052905.GA41045@cskk.homeip.net> |
| X-Sender | israel@eraalaska.net |
| User-Agent | Roundcube Webmail/0.9.4 |
| X-Mailman-Approved-At | Tue, 24 Nov 2015 10:41:38 -0500 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:99357 |
Show key headers only | View raw
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