Skip Montanaro <[EMAIL PROTECTED]> added the comment: 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. _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3436> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com