[Python-checkins] peps: Fix to schedule() pseudo-code by Yuval Greenfield.
guido.van.rossum
python-checkins at python.org
Wed Mar 20 16:21:36 CET 2013
http://hg.python.org/peps/rev/6505bfc65a6d
changeset: 4812:6505bfc65a6d
user: Guido van Rossum <guido at python.org>
date: Wed Mar 20 08:21:20 2013 -0700
summary:
Fix to schedule() pseudo-code by Yuval Greenfield.
files:
pep-0342.txt | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/pep-0342.txt b/pep-0342.txt
--- a/pep-0342.txt
+++ b/pep-0342.txt
@@ -486,8 +486,9 @@
def stop(self):
self.running = False
- def schedule(self, coroutine, stack=(), value=None, *exc):
+ def schedule(self, coroutine, stack=(), val=None, *exc):
def resume():
+ value = val
try:
if exc:
value = coroutine.throw(value,*exc)
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list