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

New issue 3029 by [email protected]: And/Or should sort their args for printing
http://code.google.com/p/sympy/issues/detail?id=3029

A simple example showing the problem:

In [33]: syms = symbols('a:f')

In [34]: expr = And(*syms)

In [35]: latex(expr)
Out[35]: 'f \\wedge c \\wedge d \\wedge a \\wedge e \\wedge b'

In [36]: pretty(expr)
Out[36]: 'And(f, c, d, a, e, b)'

In [37]: str(expr)
Out[37]: 'And(a, b, c, d, e, f)'

In [38]: expr._argset
Out[38]: frozenset([f, c, d, a, e, b])

str() is correct, but latex() and pretty() output the args in the order in which they appear in expr._argset.

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