On Fri, Jul 19, 2002, Ka-Ping Yee wrote:
I believe this is where the biggest debate lies: whether "for" should be non-destructive. I realize we are currently on the other side of the fence, but i foresee enough potential pain that i would like you to consider the value of keeping "for" loops non-destructive.
for line in f.readlines():
in any version of Python. Adding iterators made this more convenient and efficient, but I just can't see your POV in the general case.