#13378: Do not cache the non-existence of coerce/convert map too often, and do
not
pretend that there is a conversion where it doesn't make sense at all
----------------------------------------------------+-----------------------
Reporter: SimonKing | Owner: robertwb
Type: defect | Status:
needs_review
Priority: major | Milestone: sage-5.6
Component: coercion | Resolution:
Keywords: coercion conversion object cache | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Simon King | Merged in:
Dependencies: | Stopgaps:
----------------------------------------------------+-----------------------
Comment (by SimonKing):
Thank you, Jean-Pierre! Yes, it seems `ZZ.ideal(5)` is a real-world-
example in which the coercion framework caches the trivial fact that there
is no coercion map whose domain is the ''number'' 5. In addition, 5 is not
weakreffable, and finally the Sage integer 5 is not unique -- but the
coercion cache compares its keys by uniqueness and not by equality.
So, doing `ZZ.ideal(5)` repeatedly will fill up the coercion cache (post
#715, at least) with trivialities.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13378#comment:13>
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.