[Python-Dev] Patch for Weak References for Functions

Fred L. Drake, Jr. fdrake@acm.org
Thu, 8 Mar 2001 03:28:43 -0500 (EST)


Phil Thompson writes:
 > Any chance of the attached small patch be applied to enable weak
 > references to functions?
 > 
 > It's particularly useful for lambda functions and closes the "very last
 > loophole where a programmer can cause a PyQt script to seg fault" :)

Phil,
  Can you explain how this would help with the memory issues?  I'd
like to have a better idea of how this would make things work right.
Are there issues with the cyclic GC with respect to the Qt/KDE
bindings?


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Digital Creations