Proposal for removing self

Roger Binns rogerb at
Thu Aug 26 00:55:57 CEST 2004

Brent W. Hughes wrote:
> When doing object-oriented stuff, it bothers me to have to type
> "self" so many times.  I propose that Python allow the programmer to
> optionally type ".variable" instead of "self.variable" to mean the
> same thing.  Of course, the interpreter would have to be more careful
> about detecting floats that begin with just a period as in ".5".
> What are your thoughts?

When I started doing Python, it annoyed me.  Now many years later
I definitely wouldn't change it.  Guido has very good taste!


More information about the Python-list mailing list