Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79527
| 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 | <ian.g.kelly@gmail.com> |
| 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 <ian.g.kelly@gmail.com> |
| Date | Thu, 23 Oct 2014 08:45:47 -0600 |
| Subject | Re: Truthiness |
| To | Python <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 <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15110.1414075591.18130.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On Thu, Oct 23, 2014 at 8:30 AM, Simon Kennedy <sffjunkie@gmail.com> 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.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Truthiness Simon Kennedy <sffjunkie@gmail.com> - 2014-10-23 07:30 -0700
Re: Truthiness Ian Kelly <ian.g.kelly@gmail.com> - 2014-10-23 08:45 -0600
Re: Truthiness Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-24 11:42 +1100
Re: Truthiness Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2014-10-23 16:47 +0200
Re: Truthiness Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-10-23 17:01 +0200
Re: Truthiness Denis McMahon <denismfmcmahon@gmail.com> - 2014-10-23 16:07 +0000
Re: Truthiness Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-10-23 16:49 +0200
Re: Truthiness Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-23 09:51 -0500
Re: Truthiness Simon Kennedy <sffjunkie@gmail.com> - 2014-10-23 07:56 -0700
Re: Truthiness random832@fastmail.us - 2014-10-23 11:24 -0400
csiph-web