Re: Issue 1581 in sympy: subs(dict()) sometimes breaks

2012-03-16 Thread sympy
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

Re: Issue 1581 in sympy: subs(dict()) sometimes breaks

2012-02-05 Thread sympy
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

Re: Issue 1581 in sympy: subs(dict()) sometimes breaks

2012-02-05 Thread sympy
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

Re: Issue 1581 in sympy: subs(dict()) sometimes breaks

2012-02-05 Thread sympy
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

Re: Issue 1581 in sympy: subs(dict()) sometimes breaks

2012-02-04 Thread sympy
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

Issue 1581 in sympy: subs(dict()) sometimes breaks

2009-08-06 Thread codesite-noreply
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

Issue 1581 in sympy: subs(dict()) sometimes breaks

2009-08-06 Thread codesite-noreply
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