Comment #1 on issue 2689 by smi...@gmail.com: Set and Dict args should be sorted
http://code.google.com/p/sympy/issues/detail?id=2689

I'm running into a lot of attribute problems with these containers:

Why doesn't tuple Sort nicely?
sorted([Tuple(1,2),Tuple(3,2)])
[(1, 2), (3, 2)]
sorted([Tuple(3,2),Tuple(1,2)])
[(3, 2), (1, 2)]

Why can't you iterate over Set items?
for s in Set(1,2,3):
...  print s
...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'Set' object is not iterable

(I know it's Basic and I can use args to get at the items, but it seems like something named Set should be iterable like Tuple and Dict.)

--
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