max(01)* wrote: > i was wondering, what's the simplest way to echo the standard input to > the standard output, with no modification.
import sys for line in iter(sys.stdin.readline, ''): sys.stdout.write(line) Note that this uses the second form of iter(), which calls its first argument repeatedly until it returns the sentinel value (its second argument). STeVe -- http://mail.python.org/mailman/listinfo/python-list