On Sat, Jun 27, 2009 at 11:49 AM, Ryan Krauss<[email protected]> wrote: > Ondrej and I stumbled upon an issue with could_extract_minus_sign > > var('t, n') > z = (-t-t*n)/n > z.could_extract_minus_sign() > this last line returns False on my machine and True on Ondrej's. We are > both running Ubuntu 9.04 and Python 2.6.2. > > I think the issue is that the method makes it all the way down to the last > resort hash and I think Ondrej is using unicode and I am not (or something > like that). > > I think could_extract_minus sign should have an is_Mul case that returns the > could_extract_minus_sign result on the numerator.
I think the problem is simply that we have different hashes in our python, I use 64bits on all my computers now, you use 32bits. Python is known to have different hashes on those two architectures. A fix is to rewrite the could_extract_minus_sign() method in a way that is hash independent. Ondrej --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
