summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-03-22 13:36:11 (GMT)
committerGuido van Rossum <guido@python.org>2001-03-22 13:36:11 (GMT)
commit27f9b84684d7eb647ea08d9754e4bf055d426993 (patch)
treecc29c9da1f48f902115588743ba3f177ca1c1e69 /Demo
parent5ddd1a8dcb260eb8c25d7d27f7623f020648ad70 (diff)
downloadcpython-27f9b84684d7eb647ea08d9754e4bf055d426993.zip
cpython-27f9b84684d7eb647ea08d9754e4bf055d426993.tar.gz
cpython-27f9b84684d7eb647ea08d9754e4bf055d426993.tar.bz2
Add more complete reference. Change a co.back() call to co.tran() --
that's all that's needed.
Diffstat (limited to 'Demo')
-rw-r--r--Demo/threads/squasher.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Demo/threads/squasher.py b/Demo/threads/squasher.py
index 3d5ea00..0d59cb8 100644
--- a/Demo/threads/squasher.py
+++ b/Demo/threads/squasher.py
@@ -1,6 +1,7 @@
# Coroutine example: general coroutine transfers
#
# The program is a variation of a Simula 67 program due to Dahl & Hoare,
+# (Dahl/Dijkstra/Hoare, Structured Programming; Academic Press, 1972)
# who in turn credit the original example to Conway.
#
# We have a number of input lines, terminated by a 0 byte. The problem
@@ -43,7 +44,7 @@ from Coroutine import *
def getline(text):
for line in string.splitfields(text, '\n'):
- co.back(line)
+ co.tran(codisassembler, line)
def disassembler():
while 1: