[Python-checkins] CVS: python/dist/src/Demo/threads squasher.py,1.1,1.2

Guido van Rossum gvanrossum@users.sourceforge.net
Thu, 22 Mar 2001 05:36:13 -0800


Update of /cvsroot/python/python/dist/src/Demo/threads
In directory usw-pr-cvs1:/tmp/cvs-serv10374

Modified Files:
	squasher.py 
Log Message:
Add more complete reference.  Change a co.back() call to co.tran() --
that's all that's needed.


Index: squasher.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Demo/threads/squasher.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** squasher.py	2000/11/08 15:17:49	1.1
--- squasher.py	2001/03/22 13:36:11	1.2
***************
*** 2,5 ****
--- 2,6 ----
  #
  # 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.
  #
***************
*** 44,48 ****
  def getline(text):
      for line in string.splitfields(text, '\n'):
!         co.back(line)
  
  def disassembler():
--- 45,49 ----
  def getline(text):
      for line in string.splitfields(text, '\n'):
!         co.tran(codisassembler, line)
  
  def disassembler():