[pypy-svn] r29029 - pypy/dist/pypy/module/_stackless

pedronis at codespeak.net pedronis at codespeak.net
Tue Jun 20 20:40:02 CEST 2006


Author: pedronis
Date: Tue Jun 20 20:40:00 2006
New Revision: 29029

Modified:
   pypy/dist/pypy/module/_stackless/interp_coroutine.py
Log:
syncstate can be None at CPython tear down time.



Modified: pypy/dist/pypy/module/_stackless/interp_coroutine.py
==============================================================================
--- pypy/dist/pypy/module/_stackless/interp_coroutine.py	(original)
+++ pypy/dist/pypy/module/_stackless/interp_coroutine.py	Tue Jun 20 20:40:00 2006
@@ -269,7 +269,7 @@
         # Additionally note that in the context of __del__, we are
         # not in the position to issue a switch.
         # we defer it completely.
-        if self.frame is not None:
+        if self.frame is not None and syncstate is not None:
             syncstate.postpone_deletion(self)
 
     def _userdel(self):



More information about the Pypy-commit mailing list