-
-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmp for number field elements #6132
Comments
comment:1
Minor, but I just fixed two of these elsewhere: it's spelled "consistent" |
Attachment: 6132-nf-elt-cmp.patch.gz |
comment:3
The patch applies with some fuzz to 4.0.rc2, but I'm seeing a bunch of doctest failures in sage/rings:
|
comment:4
In Python 3, "greater than" etc. comparisons between objects where no natural ordering exist are supposed to raise a "TypeError" Already, comparing complex numbers in Python 2.6.2 raises Changing this will probably lead to even more doctest failures, but brings us closer to Python's way of doing things and to mathematical sanity. |
comment:6
Note that to follow this convention, we have to use |
comment:7
Apparently related to #7160 and #10064, see this sage-devel discussion. |
comment:8
See also #9572. |
comment:9
Replying to @williamstein:
That is a SageNB release ticket. ? |
comment:10
See #7160 for a related ticket/discussion. |
comment:11
I think we can close this as a duplicate of those other tickets now that they are merged. |
See discussion at http://groups.google.com/group/sage-nt/browse_thread/thread/422606e40805d5d0?hl=en
Note that
cmp(list(a), list(b))
can be slow...Component: basic arithmetic
Issue created by migration from https://trac.sagemath.org/ticket/6132
The text was updated successfully, but these errors were encountered: