Evaluate coding and style

akonsu akonsu at gmail.com
Thu Sep 24 16:47:25 EDT 2009


hello,

here is an idiom (from the documentation) that you can use instead of
your fh.readlines():

with open("hello.txt") as f:
    for line in f:
        print line



More information about the Python-list mailing list