Attack a sacred Python Cow
Terry Reedy
tjreedy at udel.edu
Sat Jul 26 17:19:59 EDT 2008
Nikolaus Rath wrote:
>
> I think you misunderstood him.
I did, but addressed the below in another post.
> 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.
tjr
More information about the Python-list
mailing list