[Tutor] Problem When Iterating Over Large Test Files

Steven D'Aprano steve at pearwood.info
Fri Jul 20 11:43:20 CEST 2012


Alan Gauld wrote:
> On 19/07/12 07:00, Steven D'Aprano wrote:

>>          for reads, lines in four_lines( INFILE ):
>>                  ID_Line_1, Seq_Line, ID_Line_2, Quality_Line = lines
> 
> Shouldn't that be
> 
>           for reads, lines in enumerate( four_lines(INFILE) ):
>                   ID_Line_1, Seq_Line, ID_Line_2, Quality_Line = lines


It certainly should!

Mea culpa, sorry for any confusion. This is what happens when I don't test 
code before posting.




-- 
Steven



More information about the Tutor mailing list