Graceful handling of first line

Egbert Bouwman egbert.list at hccnet.nl
Fri Oct 8 11:25:54 CEST 2004


A file is too large to fit into memory.
The first line must receive a special treatment, because 
it contains  information about how to handle the rest of the file.

Of course it is not difficult to test if you are reading the first line
or another one, but it hurts my feelings to do a test which by definition
succeeds at the first record, and never afterwards.
Any suggestions ?
egbert
-- 
Egbert Bouwman - Keizersgracht 197 II - 1016 DS  Amsterdam - 020 6257991
========================================================================



More information about the Python-list mailing list