#8028: Improvements to element_wrapper
---------------------------------+------------------------------------------
Reporter: nthiery | Owner: sage-combinat
Type: enhancement | Status: new
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: |
---------------------------------+------------------------------------------
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, ...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8028>
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.