should "self" be changed?

Mark Lawrence breamoreboy at yahoo.co.uk
Tue May 26 16:45:36 EDT 2015


On 26/05/2015 21:26, garabik-news-2005-05 at kassiopeia.juls.savba.sk wrote:
> zipher <dreamingforward at gmail.com> 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
>
> Believe or not, python3 (via Guido's time machine) already anticipated
> this suggestion and you can indeed use a symbol instead of 'self':
>
> class MyClass(object):
>
>     def __init__(ስ):
>         ስ.dummy = None
>

Apart from breaking all the tools that rely on "self" being spelt "self" 
this looks like an excellent idea.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list