most idiomatic looping over a file?

Sean 'Shaleh' Perry shalehperry at attbi.com
Wed May 28 22:13:55 EDT 2003


On Wednesday 28 May 2003 18:24, Tom Verbeure wrote:
> I usually do this:
>
> for line in myFile:
>     ...
>
> I think this was a fairly recent addition though.
>

it is, Erik's mail contains the way most of us learned to do it as well as the 
current ways.






More information about the Python-list mailing list