#16397: Symbolic cmp
-------------------------------------+-------------------------------------
       Reporter:  vbraun             |        Owner:
           Type:  defect             |       Status:  new
       Priority:  major              |    Milestone:  sage-6.4
      Component:  symbolics          |   Resolution:
       Keywords:                     |    Merged in:
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/rws/symbolic_cmp                 |  af5f800fdc616022d503b5e845ec81ebfef7c25e
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by vbraun):

 The problem is IMHO what to do with Python 3. Sure we can play the two
 different comparisons (cmp vs. rich) in Python 2 against each other, but
 in Py3 there will be only one comparison. So either
 * Comparison is always symbolic, and sorting will have to call `__bool__`
 on the symbolic inequalities. Slow and we then need to make that a total
 order instead of returning `False` all the time. Slow.
 * Comparison is never symbolic, and you need to call `x.symbolic_less(y)`.
 Could be beautified by the preparser. The actual comparison returns the
 internal term order. Fast.
 Thought? Maybe that topic is more fodder for sage-devel...

--
Ticket URL: <http://trac.sagemath.org/ticket/16397#comment:10>
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.

Reply via email to