Attack a sacred Python Cow
Nikolaus Rath
Nikolaus at rath.org
Sun Jul 27 03:56:43 EDT 2008
Terry Reedy <tjreedy at udel.edu> writes:
>> What he wants is to write
>>
>
> > class foo:
>> def bar(arg):
>> self.whatever = arg + 1
>>
>> instead of
>>
>> class foo:
>> def bar(self, arg)
>> self.whatever = arg + 1
>>
>> so 'self' should *automatically* only be inserted in the function
>> declaration, and *manually* be typed for attributes.
>
> which means making 'self' a keyword just so it can be omitted. Silly
> and pernicious.
Well, I guess that's more a matter of personal preference. I would go
for it immediately (and also try rename it to '@' at the same time).
Best,
-Nikolaus
--
»It is not worth an intelligent man's time to be in the majority.
By definition, there are already enough people to do that.«
-J.H. Hardy
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C
More information about the Python-list
mailing list