Issue 1169: unify symbols and var
http://code.google.com/p/sympy/issues/detail?id=1169
Comment #3 by ondrej.certik:
Thanks for the patch.
I think that var should just call symbols(), the only difference is that
var also
injects them into the namespace. E.g. something along the lines:
def var(arg, **kwargs):
import inspect
frame = inspect.currentframe().f_back
for s in symbols(arg, **kwargs):
frame.f_globals[s] = s
we may expose some functionality from Symbol to handle stuff like "\alpha",
but
otherwise it should just work. And all the logic will be at one place in
symbols().
What do you think?
P.S. I suggest to do this change after the release.
Issue attribute updates:
Owner: Vinzent.Steinberg
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---