On Tuesday, December 23, 2014 9:30:28 AM UTC+3, Gaurav Dhingra wrote:
>
> > from sympy.sets.sets import Interval 
> > Interva(0, 1) 
>     [0, 1] 
>

Pretty-printing is not an exact representation of objects.

But in this case, [0,1] returned by repr() - I think this is
a bug:
In [2]: print(str(Interval(0, 1)))
[0, 1]
In [3]: print(repr(Interval(0, 1)))
[0, 1]
In [4]: print(pretty(Interval(0, 1)))
[0, 1]
In [5]: print(latex(Interval(0, 1)))
\left[0, 1\right]
 

> > isinstance([0, 1], Interval) 
>     False                 #returns False 
>
> should not it return True' 
>

[0, 1] is a python list.  Please read https://docs.python.org/3/tutorial 

-- 
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 sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
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/73f820a4-edba-4347-a5e2-09dc4a8a5b34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to