I'm trying to add an element to a list which is a property of an
object, stored in an array. When I append to one element, all of the
lists are appended!
Example Code:
class Test:
array = []
myTests = [Test() , Test() , Test()]
print len(myTests[1].array)
myTests[0].array.append( 5 )
print l
array = []
>
> On Sep 14, 11:25 pm, mouseit <[EMAIL PROTECTED]> wrote:
>
> > I'm trying to add an element to a list which is a property of an
> > object, stored in an array. When I append to one element, all of the
> > lists are appended!
>
> > Example C