Comment #33 on issue 1233 by [email protected]: fix the rest of jython bugs
http://code.google.com/p/sympy/issues/detail?id=1233

I don't know if this is what you meant, but it doesn't fix the problem:

diff --git a/sympy/core/sets.py b/sympy/core/sets.py
index d191571..adda53c 100644
--- a/sympy/core/sets.py
+++ b/sympy/core/sets.py
@@ -257,8 +257,8 @@ def __invert__(self):

     def __contains__(self, other):
         symb = self.contains(other)
-        result = ask(symb)
-        if result is None:
+        result = isinstance(sym, bool)
+        if not result:
raise TypeError('contains did not evaluate to a bool: %r' % symb)
         return result

And in case you were wondering if the cache was related because of the cache line in the traceback, I tried with the cache off and it's still the same error and traceback (except without the cache call of course).

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" 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-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to