Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!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.069 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.02; 'cc:addr:python-list': 0.11; 'bool': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'parentheses': 0.16; 'subject: \n ': 0.16; 'subject:More': 0.16; 'wrote:': 0.18; 'feb': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'cc:2**0': 0.24; 'second': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'forgot': 0.30; 'message-id:@mail.gmail.com': 0.30; 'subject:other': 0.31; 'johnson': 0.35; 'received:google.com': 0.35; 'conversion': 0.61; 'line,': 0.68; 'subject:!)': 0.84; 'subject:via': 0.84; 'to:none': 0.92; 'rick': 0.93 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=LeujK4/aQY3rl+BeV6J17ggk3n2JxqcpE4BWO+W3df8=; b=r21Z78RXSy93h6qKpTqmgCgl8WxD1OL5kM5EwXbNWzIJGh6paJukMzhq0gqA8rwG59 5JFYzWvSN8nAF1q7yhCMiSJ6vt6F0vthXwKM/mceuL25d/NXOoBXIpUnxsLRYFncn9u4 ugGBY531Uri5IGmUnnucqZnvTDx8eS5B2Q93ntVo2IX6xW+UhaN9Wi/XgLGAUMt2Xh+l S/0l+6fxBrfENNneVcSVaVFJm3YYNMJBbbv9mHSo/ya4xG7qicdinR/Df0JsOwNYap8e r7p3LypDsf96v7+03oorT6N18ZMsqQRgboGUkrDK+M5OHyN1kC6zMacouy2lk7Fca3Zu yZ6A== MIME-Version: 1.0 X-Received: by 10.66.26.176 with SMTP id m16mr11748968pag.142.1392071409722; Mon, 10 Feb 2014 14:30:09 -0800 (PST) In-Reply-To: <85c2698c-d681-4511-b111-bb1e549ece93@googlegroups.com> References: <85c2698c-d681-4511-b111-bb1e549ece93@googlegroups.com> Date: Tue, 11 Feb 2014 09:30:09 +1100 Subject: Re: PyWart: More surpises via "implict conversion to boolean" (and other steaming piles!) 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1392071413 news.xs4all.nl 2921 [2001:888:2000:d::a6]:59472 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65847 On Tue, Feb 11, 2014 at 5:45 AM, Rick Johnson wrote: > if foo: # <- forgot parenthesis! > print 'implicit conversion to bool bites!' You also forgot the parentheses on the second line, and that's nothing to do with boolification :) ChrisA