Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.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.022 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'languages,': 0.04; 'argument': 0.05; 'oop': 0.09; 'assume': 0.14; '*any*': 0.16; 'argument,': 0.16; 'subject:class': 0.16; 'all.': 0.16; 'language': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'appears': 0.22; 'header:User-Agent:1': 0.23; 'second': 0.26; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; "i'm": 0.30; '(usually': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'c++': 0.36; 'list': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'to:addr:python.org': 0.39; 'dave': 0.60; 'first': 0.61; 'received:74.208': 0.68; 'surprise': 0.74; 'subject:have': 0.80; 'angel': 0.91 Date: Mon, 24 Nov 2014 00:20:41 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: I have no class References: <2qn27adjq412n9nff9kv5jh25d1ekkbncp@4ax.com> <8d047ahkrb4uh4qpq1uk74tel4nfc4s8uv@4ax.com> <66b13454-3503-4111-bf8e-58ce79ef00aa@googlegroups.com> <5472b24c$0$12979$c3e8da3$5496439d@news.astraweb.com> <5472BE0D.701@davea.name> In-Reply-To: <5472BE0D.701@davea.name> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:mb8n3V0dGMqXjmWvk1FuNg28X+iV692Pw8jkeE1jp+I /hFLwYWAwGjbVf/YSSaO1oDCQxj5LQS34jum25nTH5TfTOGRRw ygY0BSZx5H84Og7jHE7k1fIDKHM11o0uqGk81QFVQVimIG9HhP tIha7fwxV8TrUy6AKimYVZlFRmDF7MelsYdEaUbP8OrcN9fnLg Kdztk3MQqIdcZc7Y9gjzdq1TbR4ld3fq9mc9z41Vx9TqmEktWF VkapJ9LtmwLK+pew+O7pjFgzkK5PWodtZ6XL/enJzSVGT+jK8O FCZM6+P/+JwpWXmDfZPrhBosU8GGu+Iw1yhjkshFTz6Zg3sSZa BgpEk8HRDO16S5eqVVkk= X-UI-Out-Filterresults: notjunk:1; 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416806448 news.xs4all.nl 2932 [2001:888:2000:d::a6]:46090 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81432 On 11/24/2014 12:11 AM, Dave Angel wrote: > On 11/23/2014 11:21 PM, Steven D'Aprano wrote: > >> In some of these languages, the use of "this/self/me" is optional, but >> I'm not aware of *any* OOP language where there is no named reference to >> the current object at all. >> > > The case I found astounding in C++ was in the initializer list where the > line > > value:value > > would assume that the first one was this->value, and the second was a > local named value (usually an argument to the constructor). > > That was rather sloppy. Since this is only used in a constructor, and it appears before the body of the function/method, the second one must be an argument, or else something non-local. Anyway, the construct is a bit of a surprise the first time you see it. -- DaveA