From a00d4d13432159afdf441fe2d24b71d33256f2c0 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 20 Mar 2013 08:21:20 -0700 Subject: [PATCH] Fix to schedule() pseudo-code by Yuval Greenfield. --- pep-0342.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pep-0342.txt b/pep-0342.txt index 25ed5592b..2e50a12ec 100644 --- a/pep-0342.txt +++ b/pep-0342.txt @@ -486,8 +486,9 @@ Examples 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)