#20902: Move Parent.list() method to Sets category
-------------------------+-------------------------------------------------
Reporter: klee | Owner:
Type: | Status: needs_work
defect |
Priority: major | Milestone: sage-7.3
Component: | Resolution:
categories |
Keywords: | Merged in:
Authors: | Reviewers:
Kwankyu Lee |
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/klee/20902 | 6a36fa0c3c2c058c9dfb9dff74719174838c1a04
Dependencies: | Stopgaps:
-------------------------+-------------------------------------------------
Comment (by jsrn):
OK, your arguments are compelling. I agree that making the move is
orthogonal to changing the implementation of `list`.
Since it is possible to dynamically be a member of `EnumerableSets` or
not, how hard would it be to move the functions into there immediately? It
seems a bit wasteful to first make the move of this ticket, and then move
them again. In `sets_cat.py` there's also a note on line 1368 that
`cardinality` and other functions are intentionally left out of `Sets` to
be put in subcategories. It seems a shame to put other functions into
`Set` which actually belong elsewhere.
About the default implementation of `__len__()`: perhaps it could check
whether `self` has a `cardinality` method, in which case it could return
that.
--
Ticket URL: <https://trac.sagemath.org/ticket/20902#comment:9>
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.