[Tutor] Getting class method variable values

Alan Gauld alan.gauld@blueyonder.co.uk
Tue Jun 17 01:59:09 2003


> Alan Gauld wrote:
>
> >class C:
> >     self.d = [...]
> >
>
> This can't work,  because at this point in time, 'self' does not
exist.

Whoops, it was supposed to be inside a def __init__...!

Mea culpa,

Alan G