Updates:
Status: Fixed
Comment #6 on issue 1581 by smi...@gmail.com: subs(dict()) sometimes breaks
http://code.google.com/p/sympy/issues/detail?id=1581
that's keyword syntax (dict(x=3)) which Python parses as 'x'=3 so it
doesn't conflict with any local x.
The bias is for symbols in
Updates:
Labels: -EasyToFix NeedsReview smichr
Comment #3 on issue 1581 by smi...@gmail.com: subs(dict()) sometimes breaks
http://code.google.com/p/sympy/issues/detail?id=1581
This is now included with subs-related work in
https://github.com/sympy/sympy/pull/690 :
var('N')
N
Comment #4 on issue 1581 by asmeu...@gmail.com: subs(dict()) sometimes
breaks
http://code.google.com/p/sympy/issues/detail?id=1581
I can't decide if this is a good idea or not.
--
You received this message because you are subscribed to the Google Groups
sympy-issues group.
To post to this
Comment #5 on issue 1581 by krastano...@gmail.com: subs(dict()) sometimes
breaks
http://code.google.com/p/sympy/issues/detail?id=1581
I do not get this. What happens here:
In [5]: dict(a=3)
Out[5]: {'a': 3}
In [6]: a
NameError: name 'a' is not defined
Is this some kind of very special
Updates:
Labels: EasyToFix
Comment #2 on issue 1581 by smi...@gmail.com: subs(dict()) sometimes breaks
http://code.google.com/p/sympy/issues/detail?id=1581
When you use dict(...) it turns the keys into strings. When subs gets a
dictionary it sympifies strings. S('N') returns the sympy
Status: Accepted
Owner:
Labels: Type-Defect Priority-Medium
New issue 1581 by ondrej.certik: subs(dict()) sometimes breaks
http://code.google.com/p/sympy/issues/detail?id=1581
In [1]: N = 3
In [2]: (1 + x).subs(dict(N=3))
ERROR: An unexpected error occurred while tokenizing input
The
Comment #1 on issue 1581 by gabrielgellner: subs(dict()) sometimes breaks
http://code.google.com/p/sympy/issues/detail?id=1581
To clarify the example
In[1]: N = sympy.Symbol('N')
In[2]: (1 + N).subs(dict(N=3))
causes the above error but
In[3]: (1 + N).subs({N: 3})
works.
whereas the