#13394: Write a WeakValueDictionary with safer key removal
-------------------------------------+-------------------------------------
Reporter: nbruin | Owner: rlm
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.13
Component: memleak | Resolution:
Keywords: | Merged in:
Authors: Simon King | Reviewers:
Report Upstream: None of the above | Work issues:
- read trac for reasoning. | Commit:
Branch: | fab0ed4112b9f798e2690f4c885b57cd711ea698
u/SimonKing/ticket/13394 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by SimonKing):
Result: The error is raised in `__setitem__` and the iteration guard is
apparently invoked by `__getitem__`.
To be precise:
- The iteration context was entered by `__getitem__` with the arguments
`((<class 'sage.schemes.generic.divisor_group.DivisorGroup_curve'>, Affine
Curve over Complex Field with 53 bits of precision defined by -x^9 + y^2 -
x, Integer Ring), ())`, which looks like a `CachedRepresentation` to me.
- This iteration context is not yet exited when `__setitem__` is called
with the arguments `((<class 'sage.categories.groupoid.Groupoid'>, Complex
Field with 53 bits of precision), ())`
--
Ticket URL: <http://trac.sagemath.org/ticket/13394#comment:45>
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.