Path: csiph.com!usenet.pasdenom.info!news.albasani.net!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'beginner': 0.05; 'failing': 0.05; 'advice.': 0.09; 'before.': 0.09; 'cc:addr :python-list': 0.10; 'exercise': 0.13; 'refactoring': 0.16; 'subject:compare': 0.16; 'fix': 0.17; 'basically': 0.17; 'variables': 0.17; 'suggested': 0.20; 'received:209.85.214.174': 0.21; 'cc:2**0': 0.23; 'programming': 0.23; 'seems': 0.23; 'cc:no real name:2**0': 0.24; 'idea': 0.24; 'least': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'mind.': 0.27; 'message-id:@mail.gmail.com': 0.27; "i'm": 0.29; 'code': 0.31; 'changed': 0.34; 'received:google.com': 0.34; 'thanks': 0.34; 'received:209.85': 0.35; 'but': 0.36; "i'll": 0.36; 'should': 0.36; 'thank': 0.36; 'two': 0.37; 'being': 0.37; 'previous': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'easier': 0.38; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'cheque': 0.62; 'hours': 0.66; 'to:addr:yahoo.co.uk': 0.84; 'blood': 0.91 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 :cc:content-type; bh=glE00AHBkF9SV746UTk8tNkjnP/XmdSfYyjXlC2WG+c=; b=eassazYE3AOaPZuuEJ2YsbYQSq4DJ6l+7QaFlHw+s+EUJ3chE9S4JMOqQMQmlNtxc6 6RHKUyAeOxDwBqCsyLC8Hh1CkRG9oLxqkZ1BZ3LcdJBYD1xoazKrP+8bRl1Kc6FVGzHh b4u8yaCMvxUGzV69jj/OZ35gBg46wf1IuEZThciFImlHwm2xlBCHTdjyF/3ykbG8g5SG RZv1SV/ulsSoZPpzE2fYBHAvaN7Gqr2eSW9KFAcRQhcRRTNbnszxPM5YIQ8F1hLXae1P FLdssiHFZ7BiOBiCW0iNsvTsOXG4E+6lL1ZnIWeL6Awa9hZjNSWhagmYFOMkHM9guIYl Eoow== MIME-Version: 1.0 In-Reply-To: References: <50c01fe2$0$21853$c3e8da3$76491128@news.astraweb.com> Date: Thu, 6 Dec 2012 18:08:05 +0100 Subject: Re: Confused compare function :) From: Anatoli Hristov To: Mark Lawrence Content-Type: text/plain; charset=UTF-8 Cc: python-list@python.org 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1354813687 news.xs4all.nl 6872 [2001:888:2000:d::a6]:60074 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34406 >> No one have an idea ? >> >> Thanks >> > > Basically because your code is crap. Others have already suggested > refactoring your code to make it easier to follow. Thank you Mark for your notes. I changed the name of the variables as was suggested before. I know my code should be crappy, but at least I try as I'm a beginner in a programming at all - this is a good exercise for me. >Try (diabolical pun very > deliberate) following that advice. Failing that find out how much it'll > cost to fix and get your cheque book out, perhaps that'll focus your mind. > I'll not apologise for being blunt as your follow up is less than two hours > after your previous post. It seems the arrogance is in your blood :p Nice shot Anatoli