Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!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.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'output': 0.05; 'wednesday,': 0.07; 'subject:help': 0.08; 'subject:script': 0.09; 'thats': 0.09; '11:59': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'outputs': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'code,': 0.22; 'copied': 0.24; 'url:moin': 0.24; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'posting': 0.31; 'url:wiki': 0.31; 'terminate': 0.31; 'url:python': 0.33; 'actual': 0.34; 'subject:with': 0.35; "can't": 0.35; 'received:google.com': 0.35; 'google': 0.35; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'read': 0.60; "you're": 0.61; 'july': 0.63; 'subject:Need': 0.64; 'more': 0.64; 'jul': 0.74; 're-type': 0.84; '2013': 0.98 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=L2csbJT2vRykj4UouLmSTxuq5c5anNIdgUve/kWPipg=; b=SwYOsE4GvqNekat47qeU6HEob0f9RVu7dzA1gTKZgx+N2UxAfA+U8FqU93u2fa2Gt6 LHCoSmsWb2DWtY3hFWJT58c/PnzT+C04wREec50vOv5QS3HVJbjKCq7x3/F3crsUTa1X bvc5YoXhVLR7Q37EPlGafam+EDQruuw1fRT/zJG07JDah3hente7KTQXknScC4H1MVlQ ID2x3hZ9hZls2oS0hFSAStMETVNUsQ0bUByDIG8wWcVqE6FkIHlP9pj0z3Nr2673kMGc Kh3D3H3nZQUwn5WcHUnqKfi/UlppmGCXS0EFjtMP3LZfb+jbZJVp5Bh9UHI9fx7q50PD PWig== MIME-Version: 1.0 X-Received: by 10.220.48.17 with SMTP id p17mr3259718vcf.97.1374125899551; Wed, 17 Jul 2013 22:38:19 -0700 (PDT) In-Reply-To: <92f2a326-de72-459c-86b4-391aa530d866@googlegroups.com> References: <92f2a326-de72-459c-86b4-391aa530d866@googlegroups.com> Date: Thu, 18 Jul 2013 15:38:19 +1000 Subject: Re: Need help with network script 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374125901 news.xs4all.nl 15967 [2001:888:2000:d::a6]:59935 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50829 On Thu, Jul 18, 2013 at 11:59 AM, wrote: > On Wednesday, July 17, 2013 7:50:44 PM UTC-6, Chris Angelico wrote: >> >> Copy and paste your actual code, don't re-type it :) > > This is as far as I have gotten. THis is all my code and it has been copied and pasted. Thats why I am posting here. I know that the code can be better. Once I learn more it wont look like crap. My point is that that can't be the code that always outputs "0", because the code above would not output 0, it would terminate with TypeError. By the way, if you're going to use Google Groups, please read this: http://wiki.python.org/moin/GoogleGroupsPython ChrisA