On Sun, Mar 23, 2008 at 10:50 PM, Ryan James <[EMAIL PROTECTED]> wrote: > > On Sun, 2008-03-23 at 22:37 +0100, Ondrej Certik wrote: > > So it's more of a luck, that things work in isympy, because isympy > > uses true division by default... > > it's because when you do "from __future__ import division", which is > what isympy basically does, it only applies true division to code > written in the interactive prompt and not to imported modules. *lots* > of 3rd party stuff relies upon old-style division. i tried to use -Qnew > for a while, but scipy, numpy, matplotlib, networkx, and other libraries > i use would fall flat on their faces because of it.
Right. But the fix, at least for sympy, should be simple - just replacing integer division a/b by a//b and float division a/b by float(a)/b and that's it. It should work both with old style and new style divisions. Ondrej --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---