-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
FiniteEnumeratedSets cardinality override #13688
Comments
This comment has been minimized.
This comment has been minimized.
comment:1
Tweaked example to show we don't want to change the semantics of |
Author: Travis Scrimshaw |
comment:2
Patch which has |
This comment has been minimized.
This comment has been minimized.
Changed keywords from finite sets, cardinality to finite sets, cardinality, days45 |
Reviewer: Andrew Mathas |
comment:4
The patch is quite innocuous and fixes a problem. All doc tests pass. Can you add a doctest for testing for this? Presumably it showed up in a real class. Happy for you to set this to a positive review once that's done. |
comment:5
Replying to @AndrewAtLarge:
Done. I expanded on the example I gave in the description.
In
Also done. Thank you for reviewing this. Best, Travis |
This comment has been minimized.
This comment has been minimized.
Merged: sage-5.8.beta1 |
comment:6
Attachment: trac_13688-finite_sets_cardinality_override-ts.patch.gz |
Right now the category
FiniteEnumeratedSets
overrides a parent class'scardinality()
when creating a list. Below is a minimal example of this behavior:This seems to be caused by not checking if the parent class has a
cardinality()
function implemented, and just overriding it with_cardinality_from_list()
(which takes no [optional/keyword] parameters).CC: @nthiery @AndrewAtLarge @sagetrac-sage-combinat
Component: categories
Keywords: finite sets, cardinality, days45
Author: Travis Scrimshaw
Reviewer: Andrew Mathas
Merged: sage-5.8.beta1
Issue created by migration from https://trac.sagemath.org/ticket/13688
The text was updated successfully, but these errors were encountered: