-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Standardize MatrixGroup_gap: by adding .cardinality, and deprecating __len__ #6250
Comments
comment:1
matrix_group_gap-cardinality_len-6250-nt.2.patch superceedes the previous one (should have replaced it) #4326 depends on it |
This comment has been minimized.
This comment has been minimized.
comment:2
I have not applied or tested this patch but upon reading the code a few lines struck me as odd. Can you please explain how, if F is a finite field, F.order() -> F.cardinality() is correct? Has the order method for finite fields been rewritten? Did I miss the discussion on sage-delev that order should be deprecated and replaced by cardinality? |
comment:3
As far as I remember, what was discussed on the list was about the order of an element of a field/group/... Here this is about the order of the group itself, which is its cardinality. |
comment:4
I don't agree with the suggestion in one of the docstrings that order might be deprecated. But that is just my (American) opinion, which might not be shared by the rest of the world:-) In any case, the patches do not apply cleanly to 4.0.rc0. |
comment:5
Replying to @wdjoyner:
I am fine with both options. From discussions on sage-devel, it seems that in general aliases are somewhat frowned upon. I am happy to remove the comment if you think its better.
? I just retried, and it applies smoothly on sage 4.0.1. Did you only apply the second patch? (the first one should be deleted) |
comment:6
The second patch applied cleanly to 4.0.rc0 but failed sage -testall. I think it was unrelated but I'll retry on another version of Sage. |
comment:7
The second patch applied cleanly to 4.0.1.a0 but failed sage -testall. However, that failure (in "devel/sage/sage/misc/html.py") is a known unrelated failure. The patch reads fine and does as it claims. |
Changed author from nthiery to Nicolas Thiery |
Reviewer: David Joyner |
Merged: 4.0.2.alpha0 |
Changed author from Nicolas Thiery to Nicolas M. Thiéry |
Followup on #5308:
__len__
raises a deprecation errorCC: @sagetrac-sage-combinat @wdjoyner
Component: algebra
Keywords: cardinality, len, order
Author: Nicolas M. Thiéry
Reviewer: David Joyner
Merged: 4.0.2.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/6250
The text was updated successfully, but these errors were encountered: