Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3a.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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'english.': 0.04; 'argument': 0.05; 'language.': 0.14; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'itself,': 0.16; 'java.': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'received:192.168.1.4': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'silly': 0.16; ':-)': 0.16; 'language': 0.16; 'wrote:': 0.18; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'question': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; "i'm": 0.30; 'received:84': 0.35; 'but': 0.35; 'c++': 0.36; 'curious': 0.36; "didn't": 0.36; 'method': 0.36; 'too': 0.37; 'question,': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'bad': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'first': 0.61; 'kind': 0.63; 'refer': 0.63; 'skip:n 10': 0.64; 'mar': 0.68; 'natural': 0.68; 'anything.': 0.68; 'subject:self': 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=JLW1sq6b c=1 sm=1 tr=0 a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=0Bzu9jTXAAAA:8 a=sASEtNAQL0YA:10 a=ihvODaAuJD4A:10 a=IkcTkHD0fZMA:10 a=EBOSESyhAAAA:8 a=pGLkceISAAAA:8 a=cxiZ1cPHgwzG4Q4VKGsA:9 a=QEXdDO2ut3YA:10 a=MSl-tDqOz04A:10 X-AUTH: mrabarnett:2500 Date: Tue, 04 Mar 2014 12:47:09 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Origin of 'self' References: <7edah9989mdjb9mrnrsh5067np0ihv1jml@4ax.com> In-Reply-To: <7edah9989mdjb9mrnrsh5067np0ihv1jml@4ax.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393937237 news.xs4all.nl 2948 [2001:888:2000:d::a6]:34200 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67668 On 2014-03-04 02:09, Dennis Lee Bieber wrote: > On Sun, 2 Mar 2014 22:16:31 -0800 (PST), Westley Martínez > declaimed the following: > >> I understand that in an object method the first argument in the >> object itself, called self. However, it doesn't have to be called >> self, and can be called anything. So my question is why is it >> called self and not this like from C++ and Java. It's kind of a >> silly question, but one that I'm curious about nevertheless. >> > > It didn't want to be egotistical (as I recall, M$ VB uses "me") > So does AppleScript. In AppleScript a script can refer to the title of a window as "title of window" or "window's title", and it can refer to the title of its own window as "title of window of me" or "me's window's title". Consistent, yes, but bad English. That's why I prefer a programming language not to be too much like a natural language. :-)