Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.034 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'irc': 0.05; 'socket': 0.05; 'subject:code': 0.07; 'subject:Windows': 0.09; 'subject:not': 0.11; 'received:192.168.1.50': 0.16; 'wrote:': 0.17; 'work,': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'am,': 0.27; 'andrew': 0.27; 'code': 0.31; 'url:python': 0.32; 'running': 0.32; 'to:addr:python-list': 0.33; 'url:org': 0.36; 'url:library': 0.36; "didn't": 0.36; 'subject: (': 0.36; 'why': 0.37; 'data': 0.37; 'subject:: ': 0.38; 'url:docs': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'first': 0.61; 'received:62': 0.62; 'sms': 0.71; 'from:addr:t': 0.84; 'received:62.75': 0.84 Date: Sun, 08 Jul 2012 13:01:18 +0200 From: Thomas Jollans User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Socket code not executing properly in a thread (Windows) References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1341745281 news.xs4all.nl 6908 [2001:888:2000:d::a6]:57777 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25041 On 07/08/2012 11:03 AM, Andrew D'Angelo wrote: > Also, running the sned to socket code inside the main loop would not work, > as the main loop pauses until it recieves data from the socket (an IRC > message), which is why I didn't put the SMS code in the main loop in the > first place. http://docs.python.org/library/select.html