This is a bug. The reason that it didn't do it before was that we
didn't have the Tuple() object. Now that we do, 'x*()' is converted
to Symbol('x')*Tuple(), and unfortunately, Mul doesn't do any type
checking and so allows Tuple in its args.
I'm not sure what the correct fix is. Should Mul check if its args are Expr?
Aaron Meurer
On Thu, Aug 2, 2012 at 2:52 AM, gsagrawal <[email protected]> wrote:
> In current version
> r="x*()"
> print sympify(r) #prints x*()
>
> But it was throwing error "TypeError: can't multiply sequence by non-int of
> type 'Symbol'" in earlier versions (0.7.1/http://live.sympy.org/)
>
> What is reason ? and any suggestion on how can i fix this ?
>
>
> Thanks,
> Ghanshyam Agrawal
> Developer : math.mettl.com
>
>
> --
> 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.
--
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.