parse/slice/...

skip at pobox.com skip at pobox.com
Tue Jan 6 14:30:25 EST 2009


    rcmn> So I have to parse/slice the file by chunk of 500 and loop until
    rcmn> the list is done.  I though i would of done it in no time but i
    rcmn> can't get started for some reason.

Check the itertools module.  Probably itertools.islice.

-- 
Skip Montanaro - skip at pobox.com - http://smontanaro.dyndns.org/



More information about the Python-list mailing list