Author skip.montanaro
Recipients barry, jdwhitley, rhettinger, rrenaud, skip.montanaro
Date 2009-02-27.01:00:22
SpamBayes Score 0.0121385
Marked as misclassified No
Message-id <18855.15136.535327.807594@montanaro.dyndns.org>
In-reply-to <1235686723.19.0.70025441597.issue1818@psf.upfronthosting.co.za>
Content
More concretely, I don't think this is so onerous:

    names = ["col1", "col2", "color"]
    writer = csv.DictWriter(open("f.csv", "wb"), fieldnames=names, ...)
    writer.writerow(dict(zip(names, names)))
    ...

or

    f = open("f.csv", "rb")
    names = csv.reader(f).next()
    reader = csv.DictReader(f, fieldnames=names, ...)
    ...

Skip
History
Date User Action Args
2009-02-27 01:00:26skip.montanarosetrecipients: + skip.montanaro, barry, rhettinger, jdwhitley, rrenaud
2009-02-27 01:00:23skip.montanarolinkissue1818 messages
2009-02-27 01:00:22skip.montanarocreate