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


Groups > comp.lang.python > #25041

Re: Socket code not executing properly in a thread (Windows)

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 <t@jollybox.de>
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 <t@jollybox.de>
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 <jt9ec1$e5s$1@dont-email.me> <jta1v7$v0b$1@dont-email.me> <jtbncn$c0c$1@dont-email.me>
In-Reply-To <jtbncn$c0c$1@dont-email.me>
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 <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1915.1341745281.4697.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

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


Thread

Socket code not executing properly in a thread (Windows) "Andrew D'Angelo" <excel@pharcyde.org> - 2012-07-08 05:55 -0500
  Re: Socket code not executing properly in a thread (Windows) Thomas Jollans <t@jollybox.de> - 2012-07-07 18:12 +0200
    Re: Socket code not executing properly in a thread (Windows) "Andrew D'Angelo" <excel@pharcyde.org> - 2012-07-07 11:33 -0500
  Re: Socket code not executing properly in a thread (Windows) John Nagle <nagle@animats.com> - 2012-07-07 12:17 -0700
    Re: Socket code not executing properly in a thread (Windows) "Andrew D'Angelo" <excel@pharcyde.org> - 2012-07-08 04:03 -0500
      Re: Socket code not executing properly in a thread (Windows) Thomas Jollans <t@jollybox.de> - 2012-07-08 13:01 +0200

csiph-web