[pypy-svn] r28697 - pypy/dist/pypy/module/stackless

mwh at codespeak.net mwh at codespeak.net
Mon Jun 12 11:19:03 CEST 2006


Author: mwh
Date: Mon Jun 12 11:19:02 2006
New Revision: 28697

Modified:
   pypy/dist/pypy/module/stackless/coroutine.py
Log:
attach a parent (the default) to unpickled coroutines.  this probably should be
writable somehow, but it makes the simple tests work.


Modified: pypy/dist/pypy/module/stackless/coroutine.py
==============================================================================
--- pypy/dist/pypy/module/stackless/coroutine.py	(original)
+++ pypy/dist/pypy/module/stackless/coroutine.py	Mon Jun 12 11:19:02 2006
@@ -145,6 +145,7 @@
         args_w = space.unpackiterable(w_args)
         w_flags, w_state = args_w
         self.flags = space.int_w(w_flags)
+        self.parent = AppCoroutine._get_state(space).current
         ec = self.space.getexecutioncontext()
         ec.subcontext_setstate(self, w_state)
         self.reconstruct_framechain()



More information about the Pypy-commit mailing list