[sage-support] Re: strange list behavior

2008-01-09 Thread benjamin antieau
t; sage: x[0] = 'something else' > sage: y # since x and y are the same object, they have the same contents > ['something else'] > sage: x = ['something else again'] # now x references a new object, > sage: y# so y doesn't cha

[sage-support] strange list behavior

2008-01-09 Thread benjamin antieau
Code for the worksheet attached below. There must surely be a simple answer to this problem, but I have not been able to figure it out. I loop through i,j print the list [i,j], and append the list to pts. However, once appended to points something goes wrong, and all that points sees are the cons