Status: Valid
Owner: ----
Labels: Type-Defect Priority-High Live

New issue 3357 by [email protected]: Functions clear variables in SymPy Live
http://code.google.com/p/sympy/issues/detail?id=3357

For some reason, defining a function clears user-defined names in SymPy Live.

a = 1
print a
1
def test():
...     return a
a
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'a' is not defined
test()
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 2, in test
NameError: global name 'a' is not defined



--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
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/sympy-issues?hl=en.

Reply via email to