strange problem
Bruno Desthuilliers
bdesth.quelquechose at free.quelquepart.fr
Tue Oct 24 18:44:41 EDT 2006
ken a écrit :
> This file has 1,000,000+ lines in it, yet when I print the counter 'cin'
> at EOF I get around 10,000 less lines. Any ideas?
Not without seeing the file.
But I'm not sure I want to see it !-)
> lineIn =
> csv.reader(file("rits_feed\\rits_feed_US.csv",'rb'),delimiter='|')
> for emp in lineIn:
> cin=cin+1
> print cin
Note that manually tracking line count/number is way too boring. That's
why Python as enumerate(seq) => indice, item
More information about the Python-list
mailing list