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]