Author: Armin Rigo <ar...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit