Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed3.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.054 X-Spam-Evidence: '*H*': 0.89; '*S*': 0.00; 'true,': 0.05; 'python': 0.11; '23,': 0.16; 'interest,': 0.16; 'merely': 0.16; 'singleton': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'academic': 0.26; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'statement': 0.30; 'message-id:@mail.gmail.com': 0.30; '8:30': 0.31; '>>>>': 0.31; 'url:python': 0.33; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'false': 0.36; 'i.e.': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'url:3': 0.61; 'first': 0.61; 'name': 0.63; 'kennedy': 0.84; 'url:reference': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=aZRHmcWOUQ7Gda2nwjqNC4FXv/tnQhXYr+soHkT4SDQ=; b=R40eUgilkRD10VkctuZYxzL6cz9WSB3tNtwFWXgjVlmGDv/1hEPoHhuZW4nXaNSrZ6 dAfGG8aFoWxFnrRBF3B4Ix+AwqIyVEfOoLh/oc3Iu5fROV2WCieevYOT1Y7lhs6qLXVd PZ48fhnbTh8ZInd6yFlwRrcm1Jiq3cPubploc3kBnb951gNrlusKQnD+V0TcIv354IUj LXX6upTGd4+87s6Nhulh5f1VHTnqH3x63q/zxruTbnRnA1H97Xlx9PvTE8KShvkj+61U 1W4U1HIzstUPPF6h/UsN18Qu/7EZyN1ESL1mgfqFdYgSodXiVfYXdEnHSg5au4mfJ7Bx eISw== X-Received: by 10.68.175.196 with SMTP id cc4mr4201357pbc.147.1414075587622; Thu, 23 Oct 2014 07:46:27 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <61f0b04c-b827-4c03-b55d-4d5bd85b56f6@googlegroups.com> References: <61f0b04c-b827-4c03-b55d-4d5bd85b56f6@googlegroups.com> From: Ian Kelly Date: Thu, 23 Oct 2014 08:45:47 -0600 Subject: Re: Truthiness To: Python 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414075591 news.xs4all.nl 2887 [2001:888:2000:d::a6]:51026 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 3390 X-Received-Body-CRC: 1080777844 Xref: csiph.com comp.lang.python:79527 On Thu, Oct 23, 2014 at 8:30 AM, Simon Kennedy wrote: > Just out of academic interest, is there somewhere in the Python docs where the following is explained? https://docs.python.org/3/reference/expressions.html#booleans >>>> 3 == True > False >>>> if 3: > print("It's Twue") > > It's Twue > > i.e. in the if statement 3 is True but not in the first No, 3 is merely true, not True. True is just the name of a particular singleton object that is also true.