reading file in for loop

loial jldunn2000 at
Fri Sep 5 12:20:35 CEST 2014

If I read a file using a for loop, as follows, is the file left open if I execute a break in the for loop?

for line in open(myFile).readlines():

    if something:


More information about the Python-list mailing list