Hallvard B Furuseth h.b.furuseth at
Thu Sep 2 19:29:25 CEST 2004

I just realized...

Mike Maxwell wrote:
> When I invoke readline() in a for loop, why does it return a series of
> one-char strings, rather than the full line?
>>>> for sL in sys.stdin.readline(): print sL

for sL in iter(sys.stdin.readline, ''): print sL,


More information about the Python-list mailing list