Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Laura Creighton Newsgroups: comp.lang.python Subject: Re: python response slow when running external DLL Date: Fri, 27 Nov 2015 13:49:47 +0100 Lines: 10 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: news.uni-berlin.de dPd8f1+dlB2KvBfGMG8xMgvD6t/c4YmeuCsf67fa2mKA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(python': 0.05; 'cc:addr :python-list': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'subject:python': 0.14; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'cleaner': 0.16; 'code).': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message- id:@fido.openend.se': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:slow': 0.16; 'subject:when': 0.16; 'threading': 0.16; 'to:addr:web.de': 0.16; 'laura': 0.18; '2015': 0.20; 'cc:addr:python.org': 0.20; 'cc:2**1': 0.22; 'fri,': 0.27; 'received:se': 0.29; 'url:activestate': 0.29; 'cc:no real name:2**1': 0.29; 'probably': 0.31; 'url:code': 0.34; 'nov': 0.35; 'but': 0.36; 'url:org': 0.36; 'subject:: ': 0.37; 'charset:us- ascii': 0.37; 'header:Message-Id:1': 0.61; 'url:htm': 0.75; '>from': 0.76; 'header:In-reply-to:1': 0.84; 'otten': 0.84; 'url:recipes': 0.84; 'subject:response': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openend.se; s=default; t=1448628592; bh=NiooLaeoY5qmzbWWP4HCHtxhPr95uSS/OmXo+ER9IMo=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=rsjvNzu6vswAjqe0IOnElIw6llc2gft6cCp/oYsoht47Py8H0PK8xtfCB3pa0/+N/ G0KwX+4DZBKyqJVrrNbv8c8v2JpOhG0yjYD8Bvd27DrkmPQ78713VX7/bbc7IBoIix 6l3liDhxWuiWyJ0k6zDm2bx0HlaFqgqRqz3vvFNM= In-reply-to: Comments: In-reply-to Peter Otten <__peter__@web.de> message dated "Fri, 27 Nov 2015 13:20:03 +0100." Content-ID: <27818.1448628587.1@fido> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Fri, 27 Nov 2015 13:49:52 +0100 (CET) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:99640 In a message of Fri, 27 Nov 2015 13:20:03 +0100, Peter Otten writes: >A cleaner solution can indeed involve threads; you might adapt the approach >from (Python 2 code). But it is probably better to use threading http://code.activestate.com/recipes/82965-threads-tkinter-and-asynchronous-io/ Laura