#9677: Sage Sets don't implement genuine comparison
--------------------------------+-------------------------------------------
   Reporter:  rlm               |       Owner:  AlexGhitza
       Type:  defect            |      Status:  new       
   Priority:  major             |   Milestone:  sage-4.5.2
  Component:  basic arithmetic  |    Keywords:            
     Author:  Robert Miller     |    Upstream:  N/A       
   Reviewer:                    |      Merged:            
Work_issues:                    |  
--------------------------------+-------------------------------------------

Comment(by nbruin):

 The noted behaviour is definitely a bug. However, the attached patch
 solves this by introducing an attempt at inducing a total ordering on Sets
 by sorting them first by cardinality and then by lexicographic ordering on
 the sorted list of set elements. This only works if the elements of the
 set have a total ordering implemented.

 While python used to try to have a total ordering on all objects, this has
 been abandoned (e.g. python complex numbers and python sets)

 Shouldn't the sage design follow python in this respect? See also

 http://groups.google.ca/group/sage-devel/msg/eab3aafb319a2769

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9677#comment:1>
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 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/sage-trac?hl=en.

Reply via email to