Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #67668

Re: Origin of 'self'

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 <python@mrabarnett.plus.com>
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 <python@mrabarnett.plus.com>
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 <dc4f4ee0-8380-4141-97bd-99d6e67d5e2d@googlegroups.com> <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.7706.1393937237.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On 2014-03-04 02:09, Dennis Lee Bieber wrote:
> On Sun, 2 Mar 2014 22:16:31 -0800 (PST), Westley Martínez
> <anikom15@gmail.com> 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.

<OT>
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. :-)

</OT>

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Origin of 'self' Westley Martínez <anikom15@gmail.com> - 2014-03-02 22:16 -0800
  Re:Origin of 'self' Dave Angel <davea@davea.name> - 2014-03-03 01:49 -0500
  Re: Origin of 'self' Steven D'Aprano <steve@pearwood.info> - 2014-03-03 06:52 +0000
    Re: Origin of 'self' Westley Martínez <anikom15@gmail.com> - 2014-03-05 17:56 -0800
      Re: Origin of 'self' Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-03-06 17:43 +0000
      Re: Origin of 'self' Marko Rauhamaa <marko@pacujo.net> - 2014-03-06 19:46 +0200
  Re: Origin of 'self' Ian Kelly <ian.g.kelly@gmail.com> - 2014-03-03 00:03 -0700
  Re: Origin of 'self' Terry Reedy <tjreedy@udel.edu> - 2014-03-03 13:35 -0500
  Re: Origin of 'self' Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-03-03 21:09 -0500
    Re: Origin of 'self' Roy Smith <roy@panix.com> - 2014-03-03 21:14 -0500
      Re: Origin of 'self' Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-03-04 19:27 -0500
  Re: Origin of 'self' Chris Angelico <rosuav@gmail.com> - 2014-03-04 13:13 +1100
  Re: Origin of 'self' MRAB <python@mrabarnett.plus.com> - 2014-03-04 12:47 +0000
    Re: Origin of 'self' Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-03-04 14:27 +0000
      Re: Origin of 'self' MRAB <python@mrabarnett.plus.com> - 2014-03-04 17:10 +0000
    Re: Origin of 'self' Rustom Mody <rustompmody@gmail.com> - 2014-03-04 19:45 -0800
      Re: Origin of 'self' MRAB <python@mrabarnett.plus.com> - 2014-03-05 03:58 +0000
  Re: Origin of 'self' Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-03-04 19:25 -0500

csiph-web