Proposal for removing self
Brent W. Hughes
brent.hughes at comcast.net
Wed Aug 25 18:01:24 EDT 2004
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?
More information about the Python-list
mailing list