Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'memory.': 0.07; '-1)': 0.09; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'although,': 0.16; 'distinct': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'roy': 0.16; 'thursday,': 0.16; 'wrote:': 0.18; 'items.': 0.19; 'cc:addr:python.org': 0.22; '31,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'probably': 0.32; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'january': 0.37; 'two': 0.37; 'e.g.': 0.38; 'that,': 0.38; 'how': 0.40; 'even': 0.60; '30,': 0.65; 'smith': 0.68; 'potentially': 0.81; 'subject:True': 0.91; 'to:none': 0.92 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:cc :content-type; bh=7Nxev3CYcCtdG19P66SB3dGKjXealBnAGxMsHYSbv4g=; b=noJar5qLT9BPazDCIHJ/GqvueU07nrUMmaYhobs2uSjL8zQPB4oAh2JeMSyD77YEkY ZrwSxRfwZi0uvMvb0NpzBlsPAxKopIJVt1B86vzjhGwzfjC2g/FDyy8IeGfb7WnV4jiT z8YlBFxGDljGxWeYQvtNabuDZq1FXw2lpPwwtYDV6e+0e8DVDsHonJEaX1eKrcHkVRAa Fnwp+VruuPKlkh2uvWxtw8a1Y2QWmqMkz8On4dj9co/w+O4N/zXSD7Y4Mbrdss6gNHR/ 3fyQa2onoRaMNX0J3KaNQlxn8U113xsW2nwLHDaRK8jsd9nkkW2xkZu+iuRE+UYgSNLW pASw== MIME-Version: 1.0 X-Received: by 10.68.201.10 with SMTP id jw10mr16129889pbc.25.1391108622409; Thu, 30 Jan 2014 11:03:42 -0800 (PST) In-Reply-To: <7b41606f-4027-4470-b158-62f81b4e945c@googlegroups.com> References: <99b0aa22-5fb3-460a-a080-dacb1c0f2fda@googlegroups.com> <3dcdc95d-5e30-46d3-b558-afedf9723c7c@googlegroups.com> <52ea6b0f$0$29972$c3e8da3$5496439d@news.astraweb.com> <7b41606f-4027-4470-b158-62f81b4e945c@googlegroups.com> Date: Fri, 31 Jan 2014 06:03:42 +1100 Subject: Re: 1 > 0 == True -> False From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391108625 news.xs4all.nl 2976 [2001:888:2000:d::a6]:56366 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65039 On Fri, Jan 31, 2014 at 5:56 AM, Roy Smith wrote: > On Thursday, January 30, 2014 10:09:03 AM UTC-5, Steven D'Aprano wrote: > >> E.g. `x+1 > 0 and y >= 5` is potentially as many as 9 distinct >> items to keep in short-term memory. But bracketing some terms >> as in `(x+1 > 0) and (y >= 5)` can reduce that down to as few >> as two items. > > Yes, that's probably how I would write that, although, this is even simpler: > > (x > -1) and (y >= 5) Be careful; that's not the same thing. ChrisA