Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fdn.fr!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed1a.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.050 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'argument': 0.05; 'explicit': 0.07; 'attributes': 0.09; 'itself,': 0.16; 'java.': 0.16; 'naming': 0.16; 'silly': 0.16; 'wrote:': 0.18; 'question': 0.24; 'references': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'follows': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'c++': 0.36; 'curious': 0.36; 'method': 0.36; 'convention': 0.38; 'question,': 0.38; 'requiring': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'called': 0.40; 'first': 0.61; 'kind': 0.63; 'skip:n 10': 0.64; 'mar': 0.68; 'anything.': 0.68; 'subject:self': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=txDRyQ43euvauk+fnxx9lymp9jb+7Dhp9FycMChIKuM=; b=tG8IYhxlaCcMqHX3fSpJpP02AmhgBL8Z0KvChci6OrpOzsZ7TLQjH1/hxZi1ICyF1u RJU9+TCKJ5NQAsJqPaMWg0ZETRxtS8RAobahLMXJ6eWu+caSPNmkb4IoHP0cS+P6Yc0I d02hvv0dkNpJprCBmDxqjAaiWUEE7azfw6lzyaugbzJOwooDsdbkfpxAUen7q3F1DNyI tEroZpZMFWALQ0dTQaWHacWEkj8pIdy2Quq43vzROrHq91azTjMF9ICcjlJjJaW9PoPP QFvZF73S5KuFhqmx5tmErccAGDaXetOQtZoF9ig9FoOOk44YuAuboDyp4w5u+J7jYBGj UBKA== X-Received: by 10.68.129.201 with SMTP id ny9mr18107277pbb.70.1393830238763; Sun, 02 Mar 2014 23:03:58 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: From: Ian Kelly Date: Mon, 3 Mar 2014 00:03:18 -0700 Subject: Re: Origin of 'self' To: Python Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393830241 news.xs4all.nl 2834 [2001:888:2000:d::a6]:44150 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67515 On Sun, Mar 2, 2014 at 11:16 PM, Westley Mart=EDnez wr= ote: > I understand that in an object method the first argument in the object it= self, 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 curiou= s about nevertheless. The idea of requiring references to attributes and methods of self to be explicit comes from Modula-3; likely the naming convention follows the same lineage.