From 19d7b42b14c80ae8039e33ee7be8e06b5e586d7a Mon Sep 17 00:00:00 2001 From: ccremers Date: Thu, 14 Oct 2004 20:11:19 +0000 Subject: [PATCH] - ...but don't forget to remove the debug output... --- spdl/tuples.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/spdl/tuples.py b/spdl/tuples.py index 55b1872..db9017f 100755 --- a/spdl/tuples.py +++ b/spdl/tuples.py @@ -23,12 +23,9 @@ import string # Retrieve the tuple width tuplesize = int(sys.argv[1]) -print tuplesize # Read stdin into list and count list = [] - - loop = 1 while loop: line = sys.stdin.readline() @@ -42,9 +39,6 @@ while loop: # end of the input loop = 0 -print list -print len(list) - def tupleUnit (x): print x + "\t", @@ -62,4 +56,6 @@ def tuplesPrint (l, n, r): # Option 2: exclude first tuplesPrint (l[1:], n, r) +# Generate tuples... tuplesPrint (list, tuplesize, []) +# Thanks for your attention