#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:2 nbruin]:
 > Replying to [comment:1 SimonKing]:
 > > 2. If an existing entry is overwritten by `__setitem__` then its
 callback will be removed.
 > I guess you could reach into the `KeyedRef` object and invalidate the
 key to prevent action on callback. Doing so would complicate all our dict
 setting and deleting, so I think that is not an attractive option.

 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.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14159#comment:3>
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