Hi,
It looks like locally defined symbolic variables are always global, in
particular they overwrite globally defined variables of the same name:
sage: d = 0
sage: def f():
....: d = var('d')
....: d = 1
....:
sage: d
0
sage: f()
sage: d
d
(I put the d = 1 in the function definition to show the difference in
behaviour)
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---