hi clp

what's the difference between:

while True:
    input_line = sys.stdin.readline()
        if input_line:
            sys.stdout.write(input_line.upper())
        else:
            break

and:


while True:
    try:
        sys.stdout.write(sys.stdin.next().upper())
    except StopIteration:
        break

???

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to