2008/8/27 Jon Clements <[EMAIL PROTECTED]>:

>> len(list(csv.reader(open('my.csv'))))

> Not the best of ideas if the row size or number of rows is large!
> Manufacture a list, then discard to get its length -- ouch!

I do try to avoid premature optimization. ;-)

-- 
Cheers,
Simon B.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to