#15718: Implement the __init_extra__ protocol of categories for Cython classes.
------------------------------+------------------------
Reporter: nthiery | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.1
Component: categories | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
------------------------------+------------------------
Comment (by SimonKing):
Replying to [comment:2 nthiery]:
> For the record: this will require calling
> sage.misc.structure.getattr_from_other_class, to emulate the parent
> being an instance of the category's parent class.
I disagree. If I recall correctly, we look up the ''whole'' class
hierarchy and execute ''all'' `__init_extra__` methods that we can find.
`getattr_from_other_class` would only return ''one'' `__init_extra__`, but
we want all, and thus we need to go up both the Cython class' and the
category's parent class' mro.
--
Ticket URL: <http://trac.sagemath.org/ticket/15718#comment:3>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.