Status: Accepted
Owner: smi...@gmail.com
Labels: Type-Defect Priority-Medium

New issue 2421 by smi...@gmail.com: python(expr) issues
http://code.google.com/p/sympy/issues/detail?id=2421

    h[6] >>> print python(Eq(a,b))
    a = Symbol('a')
    b = Symbol('b')
    e = a == b

But a == b is a bool (False). Should that have been

    e = Equality(a, b)

Also
    >>> print python(sqrt(x))
    x = Symbol('x')
    e = x**(Rational(1, 2))

could print

    e = sqrt(x)

since sqrt is synonymous with **Rational(1, 2) but shorter.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to