Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'lawrence': 0.09; 'logic': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'spaces': 0.09; 'code?': 0.16; 'fancy': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:exception': 0.16; 'subject:expression': 0.16; 'vastly': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'header:User- Agent:1': 0.23; 'this:': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'lines': 0.31; 'follows': 0.31; 'names.': 0.31; 'charge': 0.33; 'but': 0.35; 'surely': 0.36; 'method': 0.36; 'two': 0.37; 'to:addr:python- list': 0.38; 'short': 0.38; 'does': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'such': 0.63; 'dont': 0.67; 'edwards': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Handling 3 operands in an expression without raising an exception Date: Fri, 27 Sep 2013 18:32:23 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-190-189.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.0 In-Reply-To: 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380303169 news.xs4all.nl 15956 [2001:888:2000:d::a6]:38436 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54901 On 27/09/2013 18:00, Grant Edwards wrote: > On 2013-09-27, ?????????? wrote: > >> Sure your method follows the the logic in a straighforward way >> step-by-step but i just dont want to spent almost 20 lines of code just >> to calculate 2 variables(city and host). > > Does your provider charge you per line of code? > > If all that matters is the number of lines of code then use this: > > city,host = 0,0 > > Only _1_ nice short line of code. > > Happy? > Classic overengineering, fancy wasting two whole spaces and having such long names. Surely c,h=0,0 is vastly superior? -- Cheers. Mark Lawrence