> You should change the doctest to > > sage: P != x^2 + x > True > > The comparison is completely arbitrary and will be machine specific. > However equality or not is not arbitrary. > > > sage: cmp(SR(3), x) in [-1,1] > > True >
Okay, those both seem like reasonable suggestions - patch is up with William's fix at # 5959. > In the future of python, things that don't have a sensible order throw a > TypeError when comparing: > http://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons > Why don't we just throw an error? As for throwing an error, probably that should be done Sage-wide for things that don't make sense, not piecemeal. At least I don't feel comfortable opening that can of worms! - kcrisman --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---