Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'completeness': 0.07; 'perl,': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:while': 0.09; 'sat,': 0.15; '(java,': 0.16; '(other': 0.16; 'least,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'syntax,': 0.16; 'syntax.': 0.16; 'feb': 0.19; 'header:X -Complaints-To:1': 0.28; "d'aprano": 0.29; 'oop': 0.29; 'steven': 0.29; 'designated': 0.30; 'function': 0.30; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'received:org': 0.36; '2005': 0.36; 'method': 0.36; 'charset:us-ascii': 0.36; 'does': 0.37; 'uses': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'matter': 0.61; '2013': 0.84; 'receiver': 0.84; 'dennis': 0.91; 'write:': 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: Sat, 09 Feb 2013 15:36:24 -0500 Organization: > Bestiaria Support Staff < References: <50039290$0$29978$c3e8da3$5496439d@news.astraweb.com> <9309333c-13a0-464c-bd94-9c682363b8c9@googlegroups.com> <511516db$0$29969$c3e8da3$5496439d@news.astraweb.com> <5115bfac$0$29999$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-17-167.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.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: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1360442193 news.xs4all.nl 6892 [2001:888:2000:d::a6]:60370 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38539 On Sat, 09 Feb 2013 14:16:59 +1100, Steven D'Aprano declaimed the following in gmane.comp.python.general: Just for completeness (or, at least, fullness if not completeness) > > What does not matter is syntax. Whether you write: > > object#method (OCaml) > object->method (C++, Perl, PHP (non-static methods)) > object::method (PHP (static methods)) > object <- method (E) > [object method] (Objective C) > object:method (Lua) > object.method (Java, Python, VisualBasic) > object method (Smalltalk, some OOP dialects of Forth) > method object (Other OOP dialects of Forth) > object \ method (Pountain Forth) > method(object) (Ada, Dylan, Matlab) Ada 2005 added designated receiver object.method syntax, though the function call method(object) is still valid Object-REXX uses object~method > send method to object (Hypertalk, OpenXION) > -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/