#5970: [with patch, needs work] Weak references in Polynomial Ring cache
---------------------------------+------------------------------------------
Reporter: SimonKing | Owner: malb
Type: defect | Status: new
Priority: blocker | Milestone: sage-4.0
Component: commutative algebra | Keywords: polynomial ring cache weak
reference
---------------------------------+------------------------------------------
Comment(by SimonKing):
At http://docs.python.org/library/weakref.html they say:
Caution: Because a WeakKeyDictionary is built on top of a Python
dictionary, it must not change size when iterating over it. This can be
difficult to ensure for a WeakKeyDictionary because actions performed by
the program during iteration may cause items in the dictionary to vanish
“by magic” (as a side effect of garbage collection).
Can this be part of the trouble with my patch?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5970#comment:5>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---