[Tutor] Looping problem

vicki at thepenguin.org vicki at thepenguin.org
Thu Aug 12 20:00:16 CEST 2004


> On Thu, 2004-08-12 at 13:21, vicki at thepenguin.org wrote:
> snipped
>>                     while not LTRD_END:
>>                         for byte in readString:
>
> I do not see any place in this loop where readString gets advanced.
> Should result really be readString???
> Do you need to bind readString to result at the end of the for loop???

Doesn't the "for readString in infile.readlines():" automatically iterate
through the lines in the file resetting readString each time?

--Vicki



More information about the Tutor mailing list