repr is the same as str for SymPy, because the true repr output would
be too verbose, and Python calls repr on the elements of a list when
you call str on the list.

If you want a true repr, use srepr().

Aaron Meurer

On Sun, May 4, 2014 at 8:43 AM, Christophe Bal <[email protected]> wrote:
> Hello.
>
> The following terminal session shows a problem with the ASCII printing
> because the two last lines.
>
> At least, I would expect the use of S(1) in the repr which is a technical
> output from my point of view. What do you think about this ?
>
> Christophe BAL
>
> -----------------------
>>>> from sympy import *
>>>> x = var('x')
>>>> f = S(1)/4
>>>> print f
> 1/4
>>>> print(repr(f))
> 1/4
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/CAAb4jG%3Dk6K1Y%3DfioZo5jLXp%2BBAXD7%2B8%2BT0dX2yEvX5PORA%3D_CA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6KdtVm3o_9BdjLpqGABS9JB36zQEAA_atJk_npYXaOA%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to