Do I always have to write "self." ?

Louis M. Pecora pecora at anvil.nrl.navy.mil
Sun Apr 30 10:00:06 EDT 2000


[[ This message was both posted and mailed: see
   the "To," "Cc," and "Newsgroups" headers for details. ]]

In article <8ec67h$b14$1 at ites.inria.fr>, Cedric Adjih
<adjih at crepuscule.com> wrote:

> or the other suggestions for read-only attributes:
> 
> 
> class Polynom2:
>         def delta(self):
>                 a,b,c=self.a,self.b,self.c
>                 return b*b-4*a*c

Yes, read only. Thanks.



More information about the Python-list mailing list