#9243: Document Signal.connect weak parameter
---------------------------+------------------------------------------------
 Reporter:  ekellner       |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Documentation  |     Version:  1.0       
 Keywords:  signals        |       Stage:  Unreviewed
Has_patch:  1              |  
---------------------------+------------------------------------------------
 Django signals keep a weak reference to the signal handler.  If you
 handler is a local function, it will be garbage collected.  There is a
 name parameter in Signal.connect, so you can put weak=False to stop this,
 but this functionality appears to be undocumented.

 It would be nice if this was mentioned somewhere in the signals
 documentation, since when your signal handler is garbage collected, it is
 silently not called and it's not trivial to figure out what's going on.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9243>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to