Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.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.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'argument': 0.04; 'string.': 0.04; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:while': 0.09; '>the': 0.16; 'ah,': 0.16; 'horst': 0.16; 'readable': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'string': 0.17; 'wrote:': 0.17; 'context.': 0.22; 'explicit': 0.22; 'header:X-Complaints- To:1': 0.28; 'implies': 0.29; 'str': 0.29; 'convert': 0.29; 'van': 0.29; 'function': 0.30; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'received:org': 0.36; 'but': 0.36; 'charset:us-ascii': 0.36; 'author': 0.37; 'itself': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'making': 0.64; 'jul': 0.65; 'us,': 0.74; 'article': 0.78; 'albert': 0.91; 'dennis': 0.91; 'rick': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Implicit conversion to boolean in if and while statements Date: Tue, 17 Jul 2012 00:44:02 -0400 Organization: > Bestiaria Support Staff < References: <86872ad2-fda0-403b-9f18-d1cb18e41860@t32g2000yqd.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-253-106-193.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342500249 news.xs4all.nl 6842 [2001:888:2000:d::a6]:41087 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25458 On 16 Jul 2012 17:57:45 GMT, Albert van der Horst declaimed the following in gmane.comp.python.general: > In article , > Ranting Rick wrote: > > >We DON'T want Python to silently convert "cost" to a string. What we > >DO want is to force the author to use the str function thereby making > >the conversion explicit. > > We do want Python to silently convert "cost" to a string in the > proper context. > > cost= 3.75 > print( cost ) > Ah, but to some of us, "print" itself implies "convert argument to human readable string format"... ie, an explicit "cast". -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/