#5843: race condition in cached_method (should not be shared between instances)
----------------------+-----------------------------------------------------
 Reporter:  nthiery   |       Owner:  mhansen                             
     Type:  defect    |      Status:  new                                 
 Priority:  critical  |   Milestone:  sage-3.4.2                          
Component:  misc      |    Keywords:  race condition, cached_method, cache
----------------------+-----------------------------------------------------

Comment(by nthiery):

 Possible correct implementation:
    cached_method could return a closure instead of function object. Upon
 assignment to the
    class, this closure would become just a usual unbound method, removing
 the need to handle
    by hand the instance binding.

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

Reply via email to