Am 29.05.2012 08:46, schrieb smichr:
In  https://github.com/sympy/sympy/pull/1314 the behavior of Tuple is being
changed wrt how the method 'has' applies to it. If an arg to 'has' is
non-Basic, e.g. a bool or Function('f'), then the 'has' result will be
False. The rationale is that has checks things that should only contain
Basic objects.

In that case, 'has' should not pretend to know a valid answer and return False. Instead, it should assume that it cannot produce a valid answer and throw an exception. Let the caller deal with the problem (which will likely bubble up to some level that reports the problem and fails execution - of course, if some intermediate software level built that Tuple just for optimization, it can then catch the exception and try an alternate strategy).

--
You received this message because you are subscribed to the Google Groups 
"sympy" 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?hl=en.

Reply via email to