I can't break out of the for loop in this example: ------ import sys
lst = []
for line in sys.stdin:
lst.append(line)
break
print lst
-----------
But, I can break out of the for loop when I do this:
---------
import sys
lst = []
for line in open("aaa.txt"):
lst.append(line)
break
print lst
----------
Why doesn't break work in the first example?
--
http://mail.python.org/mailman/listinfo/python-list
