I have a data sructure setup and I populate it in a loop like so:

y=0
while X:
   DS.name = "ASDF"
   DS.ID = 1234

   list[y] = DS;
   y = y + 1

print list

This does not work because DS is passed in by reference causing all
entries into the list to change to the most current value.  I cannot
find a "new" function in Python like there is in C++.  How do you do
this in Python?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to