Re: [sage-support] list vs. integer instances
On Apr 19, 2010, at 2:50 PM, wb wrote: coming from C I'm confused about this behavior in assignment: Since you know C, it may make sense to think of lists as being similar to pointers. 1) using only integers -- sage: a=2 sage: b=2 sage: b=b+a sage: b 4 sag
[sage-support] list vs. integer instances
coming from C I'm confused about this behavior in assignment: 1) using only integers -- sage: a=2 sage: b=2 sage: b=b+a sage: b 4 sage: a 2 so (at least), after b=b+a, 'b' seems to have gotten its own instance, however 2) using lists --