Another argument for reimplementing the behavior is that using
sympy.And/sympy.Or when & and | would mean the same thing is difficult
to justify.

Thoughts are appreciated,
Thanks,
Rob

On May 2, 9:42 am, Robert <[email protected]> wrote:
> Hello Sympy group,
>
> As usual I appreciate your time, you've been very helpful so far with
> our upgrade. (We've moved to a newer version of sympy).
>
> One thing that I found recently is that & and | seem to no longer be
> supported. I see there is a ticket for 
> thishttp://code.google.com/p/sympy/issues/detail?id=3105&q=%7C&sort=-id&c...
> Type Status Priority Milestone Reporter Summary Stars
>
> the ticket seems to mention that And doesn't do anything meaningful.
> However, it appears to work upon testing:
>
> import sympy
> p = sympy.Symbol('p')
> q = sympy.Symbol('q')
>
> (p>10) & (q>10) fails with TypeError: unsupported operand type(s) for
> &: 'StrictInequality' and 'StrictInequality'
>
> however, sympy.And appears to work:
> temp = sympy.And(p>10, q>10)
> temp.subs(dict(p=12, q=30))
> True
>
> Is there any work around currently?
>
>

-- 
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