#12895: Categories: adds support for SubcategoryMethods
---------------------------+------------------------------------------------
Reporter: nthiery | Owner: nthiery
Type: enhancement | Status: new
Priority: major | Milestone: sage-5.1
Component: categories | Keywords:
Work issues: | Report Upstream: N/A
Reviewers: | Authors: Nicolas M. ThiƩry
Merged in: | Dependencies: #11935, #12894
Stopgaps: |
---------------------------+------------------------------------------------
With this patch, a category can implement a nested class
SubcategoryMethods that provides methods for all subcategories of this
category (similar to ParentMethods that provides methods for all parents
of all subcategories of this category).
This is implemented by updating the class of each category C, at the end
of its initialization, to insert C.subcategory_class as superclass (like
what is done for Parents and Elements).
This is a bit tricky, since the super_categories method needs to be called
during the initialization.
The patch is under finalization on http://combinat.sagemath.org/patches/
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12895>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.