Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium Printing

New issue 3063 by [email protected]: set() does not pretty print correctly
http://code.google.com/p/sympy/issues/detail?id=3063

In [52]: set([x**2])
Out[52]:
   ⎛ 2⎞
set⎝x ⎠

In [53]: set(x**2)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/Users/aaronmeurer/Documents/Python/sympy/sympy/<ipython-input-53-92df40104f9e> in <module>()
----> 1 set(x**2)

TypeError: 'Pow' object is not iterable

This is confusing. I think it should print the list, like the string printer does. frozenset is the same:

In [54]: frozenset([x**2])
Out[54]:
         ⎛ 2⎞
frozenset⎝x ⎠

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues?hl=en.

Reply via email to