Hi,
I just noticed this in current master (not in 0.7.3):
In [4]: from sympy import symbols
In [5]: syms = symbols('c, b, a')
In [6]: sorted(syms)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-6-dcb7d6a54d2e> in <module>()
----> 1 sorted(syms)
/Users/mb312/usr/local/lib/python2.7/site-packages/sympy/core/relational.py
in __nonzero__(self)
224
225 def __nonzero__(self):
--> 226 raise TypeError("symbolic boolean expression has no
truth value.")
227
228 __bool__ = __nonzero__
TypeError: symbolic boolean expression has no truth value.
Is this intended? It's fairly easy to work around but it broke some
of our code and I suppose it might be surprising.
Cheers,
Matthew
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.