Path: csiph.com!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'operator': 0.03; 'from:addr:yahoo.co.uk': 0.05; 'transform': 0.05; 'stops': 0.07; "object's": 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'def': 0.14; 'invokes': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'thoughts?': 0.16; 'wrote:': 0.16; 'looked': 0.16; 'language': 0.19; 'variable': 0.20; 'lawrence': 0.22; 'parameter': 0.22; 'rid': 0.22; 'header:In- Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'parameters': 0.27; "doesn't": 0.28; 'dictionary': 0.29; 'name?': 0.29; 'anyone': 0.32; 'language.': 0.32; 'getting': 0.33; 'class': 0.33; 'symbol': 0.33; 'changing': 0.34; 'subject:?': 0.34; 'to:addr:python-list': 0.35; 'something': 0.35; 'list': 0.35; 'list,': 0.36; 'created': 0.36; 'subject:" ': 0.36; 'subject:: ': 0.37; 'rather': 0.38; 'received:org': 0.38; 'self': 0.38; 'or,': 0.38; 'method': 0.39; 'to:addr:python.org': 0.39; 'seem': 0.39; 'mark': 0.40; 'your': 0.60; 'even': 0.61; "you've": 0.61; 'taking': 0.62; 'become': 0.62; 'more': 0.62; 'genuine': 0.63; 'needs,': 0.63; 'our': 0.64; 'charset:windows-1252': 0.65; 'received:89': 0.80; 'confusing': 0.84; 'pythonistas,': 0.84; 'subject:self': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: should "self" be changed? Date: Tue, 26 May 2015 18:28:11 +0100 References: <551c8229-f426-45f0-a0ee-fdad1b161f59@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-89-240-166-61.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 In-Reply-To: <551c8229-f426-45f0-a0ee-fdad1b161f59@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ 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: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1432661300 news.xs4all.nl 2841 [2001:888:2000:d::a6]:51385 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91257 On 26/05/2015 17:37, zipher wrote: > Would it be prudent to rid the long-standing "argument" (pun unintended) about self and the ulterior spellings of it, by changing it into a symbol rather than a name? > > Something like: > > class MyClass(object): > > def __init__(@): > @.dummy = None > > OR, even better, getting *rid of it* in the parameter list, so it stops confusing people about how many parameters a method needs, and transform it into a true *operator*. > > class MyClass(object): > > def __init__(): #takes no arguments! > @.dummy = None #the @ invokes the class object's dictionary > > That would seem to be a nice solution to the problem, really. It doesn't become PERLish because you've made it into a genuine operator -- "self" was always a non-variable that looked like a variable and hence created an itch that couldn't be scratched. > > Anyone else have any thoughts? > > --mark > Yes, how about you taking a permanent holiday rather than bother this list with more of your nonsense? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence