#14711: Weak references in the coercion graph
-------------------------------------+-------------------------------------
Reporter: jpflori | Owner: davidloeffler
Type: defect | Status: needs_review
Priority: critical | Milestone: sage-6.2
Component: number fields | Resolution:
Keywords: memleak, number | Merged in:
field, QuadraticField | Reviewers: Nils Bruin, Jean-
Authors: Simon King, | Pierre Flori
Travis Scrimshaw, Jean-Pierre | Work issues:
Flori | Commit:
Report Upstream: N/A | ea58b22f0bf2652e7d04b3d55e6217dcb8732cdf
Branch: | Stopgaps:
public/ticket/14711 |
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by nbruin):
Replying to [comment:242 SimonKing]:
> Replying to [comment:241 tscrim]:
> > Why can't we just use that with `copy` as the function? Something
like:
> > {{{
> > sage: from sage.misc.lazy_string import lazy_string
> > sage: LazyFormat('%s')%lazy_string(copy, 5)
> > 5
> > }}}
>
> Makes sense to me.
This may mean that by the time the string gets expanded, the domain of the
weak map has already been garbage collected and that the copy may fail;
now leading to a failure in error message production (which is even worse
than an awkward error message). Can't we just live with a slightly more
awkward error message; possibly combined with a slightly less awkward
warning?
--
Ticket URL: <http://trac.sagemath.org/ticket/14711#comment:243>
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/d/optout.