[Python-3000] Lines breaking

Greg Ewing greg.ewing at canterbury.ac.nz
Wed May 30 03:42:22 CEST 2007

Alexandre Vassalotti wrote:
> I often
> see things like [line.strip() for line in open(file).readlines()],

If readline() stripped newlines, there would be no way
to distinguish between an empty line and EOF.


More information about the Python-3000 mailing list