[pypy-svn] pypy default: Finally fix stackless translation, by using a workaround.
arigo
commits-noreply at bitbucket.org
Tue Mar 15 18:08:17 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r42659:1ea6297c93d7
Date: 2011-03-15 18:07 +0100
http://bitbucket.org/pypy/pypy/changeset/1ea6297c93d7/
Log: Finally fix stackless translation, by using a workaround.
diff --git a/pypy/module/_stackless/interp_coroutine.py b/pypy/module/_stackless/interp_coroutine.py
--- a/pypy/module/_stackless/interp_coroutine.py
+++ b/pypy/module/_stackless/interp_coroutine.py
@@ -373,6 +373,11 @@
self.w_tempval = space.w_None
self.space = space
+ # XXX Workaround: for now we need to instantiate these classes
+ # explicitly for translation to work
+ W_CoroutineExit(space)
+ W_TaskletExit(space)
+
# Exporting new exception to space
self.w_CoroutineExit = space.gettypefor(W_CoroutineExit)
space.setitem(
More information about the Pypy-commit
mailing list