Do I always have to write "self." ?

Louis M. Pecora pecora at
Sun Apr 30 16:00:06 CEST 2000

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

In article <8ec67h$b14$1 at>, Cedric Adjih
<adjih at> 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