csv.reader length?

cjl cjlesh at gmail.com
Fri May 25 14:49:41 EDT 2007


P:

Stupid question:

reader = csv.reader(open('somefile.csv'))
for row in reader:
    do something

Any way to determine the "length" of the reader (the number of rows)
before iterating through the rows?

-CJL




More information about the Python-list mailing list