#15731: Too early coercion causes weird behavior of comparison
----------------------------+------------------------
Reporter: strenner | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.1
Component: coercion | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
----------------------------+------------------------
Comment (by nbruin):
How about `a<2`, `2<a` then? Do you want the same there? That would give
an infinite recursion.
In python, the meaning of comparison is in the hands of the left hand
side. In general, you shouldn't expect any consistency when applying
comparisons between unrelated objects. If you want to cooperate with sage
objects, you'll probably have to support coercion.
--
Ticket URL: <http://trac.sagemath.org/ticket/15731#comment:2>
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/groups/opt_out.