Le vendredi 20 avril 2012 à 14:21 -0700, smichr a écrit :
> In the code below, 'check' is the function listed first in
> `test_pickling`
> 
> >>> y = Symbol('y')
> >>> y.is_commutative
> True
> >>> check(Symbol('y', commutative=False))
> >>> y.is_commutative
> False
> >>> check(Symbol('y', commutative=True))
> >>> y.is_commutative
> False
> >>> Symbol('y', commutative=True).is_commutative
> False
> 
> 
> Why is the assumption getting locked up? I'm guess this has to do with
> __xnew_cached_ caching the Symbol but am not sure how to fix it (or
> why Symbol but not Dummy uses __xnew_cached_).
> 
That's a known problem, see
http://code.google.com/p/sympy/issues/detail?id=3130
It has also been discussed a bit in PR #1162. I think that the only
solution is to stop caching Symbols.

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

Reply via email to