#20686: Refactor getattr_from_other_class() for lookup of methods in categories
-------------------------------------+-------------------------------------
Reporter: nthiery | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-7.3
Component: categories | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: Fixed upstream, | Work issues:
in a later stable release. |
Branch: | Commit:
u/jdemeyer/optimize_method_lookup_from_the_categories_for_instances_of_cython_classes|
54ccd828cb20b1254aeaf55bf7edab4a73f1032a
Dependencies: #21030 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by vdelecroix):
why is this test removed
{{{#!diff
- We test that "private" attributes are not requested from the
element class
- of the category (:trac:`10467`)::
-
- sage: C = EuclideanDomains()
- sage: P.<x> = QQ[]
- sage: C.element_class.__foo = 'bar'
- sage: x.parent() in C
- True
- sage: x.__foo
- Traceback (most recent call last):
- ...
- AttributeError:
'sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint'
object has no attribute '__foo'
}}}
--
Ticket URL: <https://trac.sagemath.org/ticket/20686#comment:43>
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.