#16127: Fix comparison of PARI objects
-------------------------------------+-------------------------------------
Reporter: pbruin | Owner:
Type: defect | Status: needs_info
Priority: critical | Milestone: sage-6.4
Component: interfaces | Resolution:
Keywords: pari comparison | Merged in:
Authors: Peter Bruin | Reviewers: Jeroen Demeyer
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/ticket/16127 | 12fbcad65c6438fe0495c3b2424468f24b49a9ee
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by jdemeyer):
* status: needs_review => needs_info
Comment:
Replying to [comment:18 pbruin]:
> in my opinion asking whether `a <= b` only makes sense if `a` and `b`
are in some partially ordered set (like the real numbers with plus and
minus infinity).
In that case, we should give an exception when asking for `a <= b`. I
think returning False is more wrong than returning True when the objects
are equal.
> Note also the following from the ​Python documentation: "There are no
implied relationships among the comparison operators. The truth of x==y
does not imply that x!=y is false." Likewise, I don't think we should
insist that the truth of x==y implies that of x<=y.
Sure, there is no implication, but I find it strange to have 2 objects
such that `x == y` is True but `x <= y` is False.
--
Ticket URL: <http://trac.sagemath.org/ticket/16127#comment:22>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.