#12877: Categories for padics, schemes, and some more rings
-------------------------------------+--------------------------------------
Reporter: nthiery | Owner: nthiery
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.1
Component: categories | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Nicolas M. ThiƩry | Merged in:
Dependencies: | Stopgaps:
-------------------------------------+--------------------------------------
Comment (by SimonKing):
As you point out in a comment, due to the custom `__getattr__` method,
subclasses of `LazyField` can not be extension classes (becaus
`Parent.__getattr__` is only needed when the class of the parent can not
be turned into a subclass of the category's parent_class).
I am sure that you did try something like
`getattr(super(self,LazyField),name)`. Did that not work? Why?
By consequence, you (have to) turn `cdef class
ComplexLazyField_class(LazyField)` into `class
ComplexLazyField_class(LazyField)`. Did you investigate potential speed
penalties?
In the initialisation of `LocalGeneric`, which inherits from
`CommutativeRing`, you still call `Parent.__init__` (with category support
added), but not `CommutativeRing.__init__`, which would automatically
grant category support. Why?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12877#comment:4>
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.