-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
Add subset and superset methods to Sage's finite sets (Set_object_enumerated) #10938
Comments
comment:1
Hi Nicolas! One point: I think these should be called is_subset and is_superset for consistency with the most of the other is_* methods throughout sage. I realize that Python sets use issubset and issuperset, but I think the underscore makes the methods easier to read in the long lists that tend to come up with tab completion on sage objects. What do you think? |
comment:2
Hi Jason! Replying to @jbandlow:
Yeah, that's annoying. However, my feeling is that compatibility with Cheers, |
comment:3
Would it be acceptable to have both options? It would be nice also to have a better Hg-comment in the patch ;-) |
comment:4
Attachment: trac_10938-Set-issubset_issuperset-nt.patch.gz Hi Andrei, Replying to @novoselt:
You are welcome to raise the question on sage-devel. However, that
Oops, fixed. Thanks! |
comment:5
Hi Andrei, Jason! Could any of you finish the review of this patch to get it in 4.7 and out of the Sage-Combinat queue? (the poset patch depends on it) Thanks! |
Reviewer: Jason Bandlow |
comment:6
Ok, I agree that compatibility with Python is the way to go. The patch looks good to me... positive review. |
comment:7
Replying to @jbandlow:
Thanks Jason! |
Merged: sage-4.7.1.alpha0 |
From the doc::
Component: combinatorics
Author: Nicolas M. Thiéry
Reviewer: Jason Bandlow
Merged: sage-4.7.1.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/10938
The text was updated successfully, but these errors were encountered: