On 26/05/2015 21:26, garabik-news-2005...@kassiopeia.juls.savba.sk wrote:
zipher <dreamingforw...@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

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to