Attack a sacred Python Cow

Terry Reedy tjreedy at udel.edu
Sat Jul 26 23:19:59 CEST 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