See https://github.com/sympy/sympy/pull/474.
Aaron Meurer On Thu, Jun 30, 2011 at 6:14 PM, Aaron Meurer <[email protected]> wrote: > OK. I will send in a patch to SymPy that fixes this upstream. > > Aaron Meurer > > On Thu, Jun 30, 2011 at 6:05 PM, Francois Bissey > <[email protected]> wrote: >>> I think I found it: >>> class Infinity(RationalConstant): >>> __metaclass__ = Singleton >>> >>> defines >>> def _sage_(self): >>> import sage.all as sage >>> return sage.oo >>> >>> But: >>> class NegativeInfinity(RationalConstant): >>> __metaclass__ = Singleton >>> >>> doesn't have an equivalent statement for _sage_ so I guess this bit is >>> used: p = -1 >>> q = 0 >>> >>> I'll add a sage bit in there and see if it fixes the problem. >>> >> Yes, I just added >> def _sage_(self): >> import sage.all as sage >> return -(sage.oo) >> >> in class NegativeInfinity and now the only part of that test that fails is >> a trivial bit about ordering. >> >> Francois >> >> This email may be confidential and subject to legal privilege, it may >> not reflect the views of the University of Canterbury, and it is not >> guaranteed to be virus free. If you are not an intended recipient, >> please notify the sender immediately and erase all copies of the message >> and any attachments. >> >> Please refer to http://www.canterbury.ac.nz/emaildisclaimer for more >> information. >> >> -- >> 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. >> > -- 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.
