Hi William,

Thanks for the clarification. I think I see a bit of a light in the fog. 
So since lists and dictionaries are immutable objects, any references to 
them must always refer to the same thing. Consequently, if the result of 
the reference is to be changed, the object itself has to change. Did I 
get this right? I still struggle to understand the difference between 
LL=L and LL=2*L. Is there a section in the tutorial or reference that 
could help?

Thanks,
Stan

William Stein wrote:
> The behavior is identical -- both assignments create a new reference,
> as do *all* assignments in Python.  The difference is merely that
> lists and dictionaries are immutable whereas symbolic variables
> aren't.
>
> William
>
>   


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to