[Tutor] Python Lists

DaSmith@technip.com DaSmith at technip.com
Fri Jul 15 14:32:28 CEST 2005





Hi, I am a new Python Programmer, and am encountering some problems with
lists.

I have created a class which has many "Nested list" attributes. When I
create a second instance of the class, the lists are not empty, and already
contain the same values as were held in the previous instantiation. As a
C/C++ programmer, this majes no semns to me at all. Could someone please
explain to me what I must do to avoid this effect.

Kind Regards,

Daniel Smith. ( DaSmith at technip.com )




More information about the Tutor mailing list