Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.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.030 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'jan': 0.12; 'apostrophes': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'nameerror:': 0.16; 'parentheses': 0.16; 'stuff.': 0.16; ':-)': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'cc:addr:python.org': 0.22; '31,': 0.24; 'cc:2**0': 0.24; 'defined': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'see,': 0.30; 'message-id:@mail.gmail.com': 0.30; 'that.': 0.31; '"",': 0.31; '>>>>': 0.31; 'file': 0.32; '(most': 0.33; 'fri,': 0.33; 'not.': 0.33; 'received:google.com': 0.35; 'recent': 0.39; 'here:': 0.62; 'name': 0.63; 'subject:True': 0.91; 'works!': 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=/yafv3cM0/N8hBEGlrdTkytAcABrd95NACkhzX3roKI=; b=wb1a46rfc6+D9BgxK1K6Ad2l1e0SF/FBeikevTFeI3zUJ5mzDYTJtpWgpSeC8JvdNu /cDKXad2N8qHiC6917md50xFdhaBBY7Df2bAg1uBZ6cwfPi1lCkUv8WsQoF37spgKW/Z u5CBnYldz1cUpp/5Cj3SFrKwe+DSTNzi4wiI8EfyfsmnIroarnqAX6RP+vrdNgV+fI1j 1uyTR8nTc0aT/a/La6wa0vOkunXCqatEtb93kwoUtrncw62KIBev8JAnRNxVMdzbTtbf +GwNW/yuRvcZZw1/lNMEy+X4FleRFAFwDl06Ato8XCF0zx3bU9BZXgw2OyTYBElfF8BT d0uQ== MIME-Version: 1.0 X-Received: by 10.66.129.133 with SMTP id nw5mr16377020pab.98.1391113525832; Thu, 30 Jan 2014 12:25:25 -0800 (PST) In-Reply-To: References: <99b0aa22-5fb3-460a-a080-dacb1c0f2fda@googlegroups.com> <3dcdc95d-5e30-46d3-b558-afedf9723c7c@googlegroups.com> <975026c8-d9a7-4a70-940e-a580bbedbf66@googlegroups.com> Date: Fri, 31 Jan 2014 07:25:25 +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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391113528 news.xs4all.nl 2849 [2001:888:2000:d::a6]:54413 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65047 On Fri, Jan 31, 2014 at 7:14 AM, Jussi Piitulainen wrote: >> I don't think any number of parentheses will help that :-) > > Er, sorry about that. Here: > >>>> x <= y < z == w > Traceback (most recent call last): > File "", line 1, in > NameError: name 'x' is not defined > > Much better :) See, you still all think the solution is with parentheses and stuff. It's not. The solution is with apostrophes - look! >>> 'x' <= 'y < z == w' True Now it works! ChrisA