Path: csiph.com!usenet.pasdenom.info!news.izac.org!ohm.izac.org!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'charset:iso-8859-7': 0.04; 'interpreter.': 0.07; 'logic': 0.09; 'measure': 0.09; 'runs': 0.10; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'interpreter,': 0.16; 'rules.': 0.16; 'subject:exception': 0.16; 'subject:expression': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'written': 0.21; 'otherwise,': 0.22; 'rules': 0.22; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'especially': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'lines': 0.31; 'perl': 0.31; 'sep': 0.31; 'another': 0.32; 'agree': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'behind': 0.37; 'being': 0.38; 'stopped': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'tell': 0.60; 'break': 0.61; 'matter': 0.61; 'first': 0.61; 'high': 0.63; 'within': 0.65; 'it!': 0.67; 'truth': 0.81; 'me!': 0.84; 'them)': 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:content-transfer-encoding; bh=B80n8gkgwDOCOP4ZHcI+9d6ns0m0G3my2aJH7SqE1dQ=; b=XNlxiry5UzHNFT3FtZGzRedJo+5F//nZpxc4+yh1I5FACsGbU5zWLBqnbB2KSc5llI XgH6XZQyNWh/RFYIoxSV5RwvrDIfK6Wa/zA8VIA26TjHEckAj6rvampgpyy9w8Zq18T7 f8vwqKyXcCb4K3uqPgLgWLaTaXweeaFKX5MZqnaG1lyLOcQq2UP3cijlr2NozYIKUgJf 0v+EUV4wvWXwPVteLpaXy92J6UUEjTyCRcEazyBWO+BiWpZ6V9lEgKmfC6Qd1OF+3xt8 MXx2634H3/fMq5iUad49TXoZsgFDqcTI+7R9VqPqO7kTdd7oqsooGOxsnomC72VbsdZM ZQpw== MIME-Version: 1.0 X-Received: by 10.52.228.137 with SMTP id si9mr7492444vdc.29.1380333582808; Fri, 27 Sep 2013 18:59:42 -0700 (PDT) In-Reply-To: References: Date: Sat, 28 Sep 2013 11:59:42 +1000 Subject: Re: Handling 3 operands in an expression without raising an exception From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380333591 news.xs4all.nl 15978 [2001:888:2000:d::a6]:52515 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54921 On Sat, Sep 28, 2013 at 8:06 AM, =CD=DF=EA=EF=F2 wr= ote: > Well to tell the truth no matter what you say to me if something can be > written in less lines than another implementation but still retain its > simplicity and straightforward logic behind it i would prefer it! > I don't know why you think otherwise, especially people who are used to > write Perl code(me being one of them) would agree with me! It's high time you stopped trying to write Perl code that runs under the Python interpreter, and started writing Python code that runs under the Python interpreter. There are rules. You first learn the rules and learn to code within them; then later, once you actually achieve some measure of competence, you begin learning when to break the rules. ChrisA