Issue 1170: problem with printing in 2.6 http://code.google.com/p/sympy/issues/detail?id=1170
New issue report by ondrej.certik: Here is the main problem isolated: [EMAIL PROTECTED]:~/repos/sympy$ python2.6 r.py e1: [x**3, 1, x**4, x, x**2] e2: [1, x, x**2, x**3, x**4] set(e1): set([1, x, x**2, x**4, x**3]) set(e2): set([1, x, x**2, x**4, x**3]) spr(set(e1): set([x**2, x**3, x**4, 1, x]) spr(set(e2): set([x**2, x**3, x**4, 1, x]) [EMAIL PROTECTED]:~/repos/sympy$ vim r.py [EMAIL PROTECTED]:~/repos/sympy$ vim r.py [EMAIL PROTECTED]:~/repos/sympy$ cat r.py from sympy import * from sympy.core.basic import StrPrinter var("x") spr = StrPrinter.doprint e1 = [x**3, 1, x**4, x, x**2] e2 = [1, x, x**2, x**3, x**4] print "e1:", e1 print "e2:", e2 print "set(e1):", set(e1) print "set(e2):", set(e2) print "spr(set(e1)):", spr(set(e1)) print "spr(set(e2)):", spr(set(e2)) [EMAIL PROTECTED]:~/repos/sympy$ python2.5 r.py e1: [x**3, 1, x**4, x, x**2] e2: [1, x, x**2, x**3, x**4] set(e1): set([1, x, x**2, x**4, x**3]) set(e2): set([1, x, x**2, x**4, x**3]) spr(set(e1)): set([1, x, x**2, x**3, x**4]) spr(set(e2)): set([1, x, x**2, x**3, x**4]) [EMAIL PROTECTED]:~/repos/sympy$ python2.6 r.py e1: [x**3, 1, x**4, x, x**2] e2: [1, x, x**2, x**3, x**4] set(e1): set([1, x, x**2, x**4, x**3]) set(e2): set([1, x, x**2, x**4, x**3]) spr(set(e1)): set([x**2, x**3, x**4, 1, x]) spr(set(e2)): set([x**2, x**3, x**4, 1, x]) Notice the lines with spr(set(e1)). They are sorted in python2.5 (and also in 2.4, not shown here), but unsorted in python2.6. Issue attributes: Status: Accepted Owner: ---- Labels: Type-Defect Priority-High -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en -~----------~----~----~----~------~----~------~--~---