Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'exception': 0.03; 'lines,': 0.05; '"__main__":': 0.07; '[],': 0.07; '__name__': 0.07; 'run,': 0.07; 'subject:help': 0.07; '[])': 0.09; 'runs,': 0.09; 'exception?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'guessing': 0.16; 'subject:program': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'do.': 0.21; 'received:209.85.214.174': 0.21; 'header:In-Reply-To:1': 0.25; 'first,': 0.27; 'subject:please': 0.27; 'message- id:@mail.gmail.com': 0.27; 'helpful.': 0.29; 'second,': 0.29; 'points': 0.29; "i'm": 0.29; 'expect': 0.31; 'to:addr:python- list': 0.33; 'received:google.com': 0.34; 'nov': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'does': 0.37; 'two': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'mean': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'link': 0.60; 'provide': 0.62; 'different': 0.63; 'more': 0.63; 'gave': 0.65; 'dang': 0.84; 'questions;': 0.84; 'subject:chat': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=C3EqT4jAFDQDacms4lApC7KvvRhMndxmAPiN8VVTvrI=; b=Wx3xjpUVQ9bQallAZtAFocAt0z7/GW2blQViy6p0axJVpRmEnDxrSWIOHkDShDJqlC DPEhgG0VvI+jW6l09yt0B/eTa4uJPfPxKjaST6AC4xYbAf+86hoMEN5h5Ms7428Ark32 /OQiZeaGzt1T/QoY4nFo1UQJUn6JyRZXw9ZbbKXGqTMI8kggX6gMgKb0n0cDc/4FrFjl dsgCuNddE1R7HkSQ5VI1CvssvtUdXkdiX53sWqkbEyrzGtZg5EH1kPCKWwFWzEVjKIAx m8XeNCB1ZlGHJ8DOgydselnmSRWNp1aGStKynKljOmt8wQWt+pub9JREvIyJbqqyPFNY 5RXw== MIME-Version: 1.0 In-Reply-To: <3aa89e19-05e9-4593-95c8-e142297339a6@googlegroups.com> References: <8edb652f-c48f-4758-a315-3ecc8070267d@googlegroups.com> <3aa89e19-05e9-4593-95c8-e142297339a6@googlegroups.com> Date: Wed, 28 Nov 2012 23:24:07 +1100 Subject: Re: please help me to debud my local chat network program From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1354105450 news.xs4all.nl 6949 [2001:888:2000:d::a6]:57636 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34016 On Wed, Nov 28, 2012 at 10:57 PM, Minh Dang wrote: > please help me, after changing broadcast, there are 2 bugs: > if __name__ == "__main__": > sys.exit(main()) > and > > rQueue, wQueue, xQueue = select.select(inputs, [], []) > please help me By "bug", I'm guessing you mean one of two things: 1) The program fails to run, and an exception is given that points to one of these lines, or 2) The program runs, but does something different from what you expect it to do. If it's the first, what's the exception? If the second, what do you expect and what happens? You need to provide more information. Check out the link I gave you on how to ask questions; it's very helpful. ChrisA