Idea about method parameters

Erik Max Francis max at alcyone.com
Mon Sep 24 20:52:27 EDT 2001


Markus Schaber wrote:

> Now I'd love to have the possibility to shorten this by typing:
> 
> class A:
>     def m(self, self.value):
>         pass # or the other work to be done
> 
> This should do exactly the same as:
> 
> class A:
>     def m(self, value):
>         self.value = value
>         del value
>         #the other work here

Explicit is better than implicit.  Saving a few keystrokes shouldn't be
sufficient reason to add such an irregular exception.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Insight -- the titillating knack for hurting!
\__/ Colette
    Rules for Buh / http://www.alcyone.com/max/projects/cards/buh.html
 The official rules to the betting card game, Buh.



More information about the Python-list mailing list