[pypy-svn] r27364 - pypy/dist/pypy/module/_weakref

cfbolz at codespeak.net cfbolz at codespeak.net
Wed May 17 15:09:57 CEST 2006


Author: cfbolz
Date: Wed May 17 15:09:56 2006
New Revision: 27364

Modified:
   pypy/dist/pypy/module/_weakref/interp__weakref.py
Log:
fix bug in weakrefs (thanks armin). hard to write a test for it :-(. you could
see the problem by looking at the output, but since the test passes it is not
shown by default.


Modified: pypy/dist/pypy/module/_weakref/interp__weakref.py
==============================================================================
--- pypy/dist/pypy/module/_weakref/interp__weakref.py	(original)
+++ pypy/dist/pypy/module/_weakref/interp__weakref.py	Wed May 17 15:09:56 2006
@@ -92,6 +92,7 @@
         
     def invalidate(w_self):
         w_self.address = WEAKNULL
+        w_self.addr_lifeline = WEAKNULL
 
     def activate_callback(w_self):
         if not w_self.space.is_w(w_self.w_callable, w_self.space.w_None):



More information about the Pypy-commit mailing list