[pypy-svn] r34795 - pypy/dist/pypy/module/_stackless
arigo at codespeak.net
arigo at codespeak.net
Mon Nov 20 15:55:29 CET 2006
Author: arigo
Date: Mon Nov 20 15:55:27 2006
New Revision: 34795
Modified:
pypy/dist/pypy/module/_stackless/coroutine.py
Log:
Made the AppCoroutine state argument optional again, for the cclp.
Modified: pypy/dist/pypy/module/_stackless/coroutine.py
==============================================================================
--- pypy/dist/pypy/module/_stackless/coroutine.py (original)
+++ pypy/dist/pypy/module/_stackless/coroutine.py Mon Nov 20 15:55:27 2006
@@ -51,8 +51,10 @@
class AppCoroutine(Coroutine): # XXX, StacklessFlags):
- def __init__(self, space, state):
+ def __init__(self, space, state=None):
self.space = space
+ if state is None:
+ state = AppCoroutine._get_state(space)
Coroutine.__init__(self, state)
self.flags = 0
self.newsubctx()
@@ -63,7 +65,7 @@
def descr_method__new__(space, w_subtype):
co = space.allocate_instance(AppCoroutine, w_subtype)
- AppCoroutine.__init__(co, space, AppCoroutine._get_state(space))
+ AppCoroutine.__init__(co, space)
return space.wrap(co)
def _get_state(space):
More information about the Pypy-commit
mailing list