Message70310
I should also point out that I've generally used this technique to
populate the fieldnames attribute from the file:
f = open("somefile.csv", "rb")
rdr = csv.DictReader(f, fieldnames=csv.reader(f).next())
So it is fairly trivial to set the fieldnames attribute before actually
reading any data rows. |
|
Date |
User |
Action |
Args |
2008-07-27 03:23:45 | skip.montanaro | set | recipients:
+ skip.montanaro, rhettinger, mishok13 |
2008-07-27 03:23:45 | skip.montanaro | set | messageid: <1217129025.38.0.66833746732.issue3436@psf.upfronthosting.co.za> |
2008-07-27 03:23:42 | skip.montanaro | link | issue3436 messages |
2008-07-27 03:23:42 | skip.montanaro | create | |
|