On Sun, 02 Sep 2012 14:04:29 -0400, Terry Reedy <tjre...@udel.edu> wrote: >If you process each line separately, there is no reason to read them all >at once. Use the file as an iterator directly. Since line is already a >string, there is no reason to copy it into a new string. Combining these >two changes with Mark's suggestion to use with and we have the following >simple code:
Thanks guys for the suggestion. -- http://mail.python.org/mailman/listinfo/python-list