#14159: Don't install callbacks on values of TripleDict, MonoDict
---------------------------------+------------------------------------------
       Reporter:  nbruin         |         Owner:  tbd     
           Type:  PLEASE CHANGE  |        Status:  new     
       Priority:  major          |     Milestone:  sage-5.8
      Component:  PLEASE CHANGE  |    Resolution:          
       Keywords:                 |   Work issues:          
Report Upstream:  N/A            |     Reviewers:          
        Authors:                 |     Merged in:          
   Dependencies:                 |      Stopgaps:          
---------------------------------+------------------------------------------

Comment (by SimonKing):

 Replying to [comment:4 nbruin]:
 > Replying to [comment:3 SimonKing]:
 > > So, what about the first option? It would make sure that an entry will
 only be deleted if the value is identical with the object whose callback
 is being called.
 > Yes, sorry for not being clear about it. That's what the second part of
 the reply expands on.


 Sorry, I don't see the relation with suggestion 1.

 > So probably there needs to be an additional option on ...DictEraser
 objects to check that the value
 > is as expected

 Why? The callback would be checking that the value is identical with the
 object pointed to by the weak reference. This should be cheap enough to be
 done by default.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14159#comment:5>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to