Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'failing': 0.05; 'advice.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'refactoring': 0.16; 'subject:compare': 0.16; 'wrote:': 0.17; 'fix': 0.17; 'basically': 0.17; 'suggested': 0.20; 'idea': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'mind.': 0.27; 'header:X-Complaints-To:1': 0.28; 'code': 0.31; 'from:addr:yahoo.co.uk': 0.32; 'to:addr:python-list': 0.33; 'thanks': 0.34; 'received:org': 0.36; "i'll": 0.36; 'two': 0.37; 'being': 0.37; 'previous': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'easier': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'cheque': 0.62; 'hours': 0.66; 'received:89': 0.86 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Confused compare function :) Date: Thu, 06 Dec 2012 16:52:09 +0000 References: <50c01fe2$0$21853$c3e8da3$76491128@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-89-240-171-189.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: X-Antivirus: avast! (VPS 121206-1, 06/12/2012), Outbound message X-Antivirus-Status: Clean 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1354812701 news.xs4all.nl 6872 [2001:888:2000:d::a6]:46032 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34404 On 06/12/2012 16:16, Anatoli Hristov wrote: > > 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. 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. -- Cheers. Mark Lawrence.