#8028: Improvements to element_wrapper
---------------------------------+------------------------------------------
   Reporter:  nthiery            |       Owner:  sage-combinat                
       Type:  enhancement        |      Status:  needs_review                 
   Priority:  major              |   Milestone:  sage-4.3.2                   
  Component:  combinatorics      |    Keywords:  ElementWrapper, partial order
     Author:  Nicolas M. ThiƩry  |    Upstream:  N/A                          
   Reviewer:  Florent Hivert     |      Merged:                               
Work_issues:                     |  
---------------------------------+------------------------------------------
Changes (by nthiery):

  * status:  new => needs_review


Old description:

> Improvements to element_wrapper:
>
>  - Don't define __cmp__ by default to not force a total order on
> subclasses
>  - Define __lt__ to have elements incomparable by default
>  - Provide alternative implementations as _cmp_by_value, _lt_by_value
>  - Update accordingly:
>    - FiniteSemigroups().example
>  - Misc polishing (copyright header, whitespace, ...)
>
> This will be used by upcoming patches for crystals, ...

New description:

 Improvements to element_wrapper:

  - Do not define __cmp__ by default to not force a total order on
 subclasses
  - Define __lt__ to have elements incomparable by default
  - Provide alternative implementations as _cmp_by_value, _lt_by_value
  - Update accordingly:
    - FiniteSemigroups().example(), FiniteCoxeterGroups().example()
  - Misc polishing (copyright header, whitespace, ...)


 This will be used by upcoming patches for crystals, ...

--

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8028#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