Author: Armin Rigo <[email protected]>
Branch: tealet
Changeset: r45393:eca11e837d77
Date: 2011-07-06 19:14 +0200
http://bitbucket.org/pypy/pypy/changeset/eca11e837d77/
Log: Fixes.
diff --git a/pypy/module/tealet/interp_tealet.py
b/pypy/module/tealet/interp_tealet.py
--- a/pypy/module/tealet/interp_tealet.py
+++ b/pypy/module/tealet/interp_tealet.py
@@ -24,7 +24,7 @@
if main is None:
raise TealetError("%s to a non-started-yet tealet" % funcname)
assert isinstance(main, W_MainTealet)
- if main.execution_context is not space.get_execution_context():
+ if main.executioncontext is not space.getexecutioncontext():
raise TealetError("%s in a different thread" % funcname)
# ____________________________________________________________
@@ -62,7 +62,7 @@
r = space.allocate_instance(W_MainTealet, w_subtype)
r.__init__()
r.space = space
- r.execution_context = space.get_execution_context()
+ r.executioncontext = space.getexecutioncontext()
return space.wrap(r)
def W_MainTealet_start(space, w_self, w_tealet):
diff --git a/pypy/rlib/rtealet.py b/pypy/rlib/rtealet.py
--- a/pypy/rlib/rtealet.py
+++ b/pypy/rlib/rtealet.py
@@ -52,7 +52,8 @@
## ------------------------------------------------------------
## The code below is implementation details.
-## XXX No support for multithreading so far!
+## No support for multithreading! The caller is responsible for not
+## mixing threads.
class Switcher(object):
current = None
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit