#20028: sorting of number field elements
-------------------------------------+-------------------------------------
Reporter: cremona | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-7.1
Component: number fields | Resolution:
Keywords: sort number field | Merged in:
elements | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: u/cremona/20028 | a8a0714ceb09eef1c5a9e1607b2dce5183d8763d
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by nbruin):
Thanks! Personally, I dislike the `try: L.sort() except
NotImplementedError: pass` blocks. Those sorts shouldn't have been there
in the first place. I think people should just deal with the fact that
some objects do not come in any particular order. It does seem the easiest
way to ensure that most doctests do not change, which is the easier way of
getting this stuff in. So I think we'll have to live with it.
It's sad that python first had `__cmp__` which made it impossible to have
eq/ne without pretending to have ordering.
--
Ticket URL: <http://trac.sagemath.org/ticket/20028#comment:17>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.