Question: Error or misconcept

Michael Hudson mwh at python.net
Mon Nov 5 08:30:49 EST 2001


"Emile van Sebille" <emile at fenx.com> writes:

> "Károly Ladvánszky" <aa at bb.cc> wrote in message
> news:3be65da4$1_3 at corp-goliath.newsgroups.com...
> > I have run into the following problems.
> >
> > 1.)
> >
> > class c1:
> >     a1=[]
> 
> 
> You've just created a class level shared object a1.  Remove this and add the
> following if you want instance level:
> 
>     def __init__(self):
>         a1 = []
          ^ self.

Cheers,
M.

-- 
  "The future" has arrived but they forgot to update the docs.
                                        -- R. David Murray, 9 May 2000



More information about the Python-list mailing list