Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.061 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'syntax': 0.03; 'argument': 0.04; 'python': 0.09; '"if': 0.09; 'subject:while': 0.09; ':-)': 0.13; 'ignore': 0.13; 'language': 0.14; 'boolean': 0.16; 'string': 0.17; 'explicit': 0.22; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'wrote': 0.26; 'question': 0.27; "doesn't": 0.28; 'argue': 0.29; 'statements': 0.29; 'anybody': 0.32; 'to:addr :python-list': 0.33; 'decisions': 0.35; 'so,': 0.35; 'received:192.168.0': 0.35; 'something': 0.35; 'explain': 0.36; 'but': 0.36; 'why': 0.37; 'subject:: ': 0.38; 'mean': 0.38; 'some': 0.38; 'things': 0.38; 'to:addr:python.org': 0.39; 'apply': 0.39; 'received:192': 0.39; 'skip:" 10': 0.40; 'received:192.168': 0.40; 'your': 0.60; 'received:62': 0.62; 'more': 0.63; 'choose': 0.65; 'conversion?': 0.84; 'received:192.168.0.101': 0.84; 'received:192.168.13': 0.84; 'received:62.179': 0.84; 'received:62.179.121': 0.84; 'received:upcmail.net': 0.84; 'alone.': 0.91 X-SourceIP: 89.134.225.226 Date: Mon, 16 Jul 2012 23:26:18 +0200 From: Laszlo Nagy User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Implicit conversion to boolean in if and while statements References: <5002a1f9$0$29995$c3e8da3$5496439d@news.astraweb.com> <7b027612-a07e-40f9-8ad2-3e95c5440482@googlegroups.com> <86872ad2-fda0-403b-9f18-d1cb18e41860@t32g2000yqd.googlegroups.com> <50038364$0$29995$c3e8da3$5496439d@news.astraweb.com> <50039698$0$29978$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 1342473987 news.xs4all.nl 6917 [2001:888:2000:d::a6]:58017 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25443 > This syntax is explicit *enough*. We don't need to be any more > explicit. > > But if you are going to argue that "if obj" is *explicit enough*, then > apply your argument consistently to "String"+1.75 also. Why must we be > explicit about string conversion BUT not boolean conversion? Can you > reduce this to the absurd? Or will you just choose to ignore this > valid point? Not all decisions in Python are based purely on the "explicit enough" thing. Some things in the language cannot be explained using explicitness alone. So, when we cannot fully explain the ' why String+1.75 ' question with statements about explicitness then it doesn't mean that anybody lied or wrote something wrong. :-)