[pypy-commit] pypy continulet-pickle: Randomly fix something else in stackless.py.
arigo
noreply at buildbot.pypy.org
Thu Sep 22 09:54:59 CEST 2011
Author: Armin Rigo <arigo at tunes.org>
Branch: continulet-pickle
Changeset: r47386:c183e6fa96c0
Date: 2011-09-22 09:54 +0200
http://bitbucket.org/pypy/pypy/changeset/c183e6fa96c0/
Log: Randomly fix something else in stackless.py.
diff --git a/lib_pypy/stackless.py b/lib_pypy/stackless.py
--- a/lib_pypy/stackless.py
+++ b/lib_pypy/stackless.py
@@ -15,16 +15,9 @@
class coroutine(object):
- "we can't have continulet as a base, because continulets can't be rebound"
def __init__(self):
self._frame = None
- self.is_zombie = False
-
- def __del__(self):
- self.is_zombie = True
- del self._frame
- self._frame = None
def bind(self, func, *argl, **argd):
"""coro.bind(f, *argl, **argd) -> None.
@@ -62,7 +55,7 @@
def _is_alive(self):
if self._frame is None:
return False
- return not self._frame.is_pending()
+ return self._frame.is_pending()
is_alive = property(_is_alive)
del _is_alive
More information about the pypy-commit
mailing list