Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!zen.net.uk!dedekind.zen.co.uk!news.stack.nl!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.052 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'test,': 0.07; '"if': 0.09; 'boolean': 0.16; 'pythonic': 0.16; 'received:10.255': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'header :In-Reply-To:1': 0.27; 'false': 0.36; 'doing': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'simply': 0.61; 'more': 0.64; 'subject:True': 0.91 Date: Thu, 28 Aug 2014 15:52:48 -0500 From: Andrew Berg User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Subject: Re: When does True == True References: In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.255.156.132] X-ClientProxiedBy: CH1PR03CA002.namprd03.prod.outlook.com (10.255.156.147) To CY1PR0301MB0841.namprd03.prod.outlook.com (25.160.163.147) X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;UriScan:; X-Forefront-PRVS: 031763BCAF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6009001)(51704005)(199003)(189002)(24454002)(102836001)(74502001)(83072002)(80022001)(89122001)(107046002)(85852003)(101416001)(110136001)(92726001)(88552001)(21056001)(50466002)(81542001)(2351001)(4396001)(75432001)(59896002)(31966008)(85306004)(81342001)(92566001)(107886001)(20776003)(50986999)(76482001)(77982001)(99396002)(64706001)(86362001)(65816999)(54356999)(83506001)(76176999)(87266999)(558084003)(106356001)(87976001)(79102001)(80316001)(95666004)(77096002)(46102001)(47776003)(42186005)(33656002)(64126003)(65956001)(105586002)(23676002)(65806001)(90102001)(83322001)(74662001)(89472002); DIR:OUT; SFP:; SCL:1; SRVR:CY1PR0301MB0841; H:[IPv6:2601:2:4780:2fd:3cfa:1b41:db29:34df]; FPR:; MLV:nov; PTR:InfoNoRecords; A:0; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: my.HennepinTech.edu does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=aberg010@my.HennepinTech.edu; X-OriginatorOrg: my.hennepintech.edu 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1409259191 news.xs4all.nl 2833 [2001:888:2000:d::a6]:40017 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:77233 On 2014.08.28 15:38, Seymore4Head wrote: > What am I doing wrong? >>> True == True True >>> True == "True" False >>> type(True) >>> type("True") Also, if is already a boolean test, and it is more Pythonic to simply write "if pigword.isalpha():".