csv.DictWriter.write_header()

Chris Rebert clp2 at rebertia.com
Fri Aug 14 04:20:18 CEST 2009


On Wed, Aug 12, 2009 at 4:45 PM, Alan G Isaac<alan.isaac at gmail.com> wrote:
> Given a csv.DictWriter instance `dw`
> I think it would be nice to be able to
> say dw.write_header()
> instead of
> dw.writer.writerow(dw.fieldnames)
>
> Good idea?

Maybe. You could file a bug: http://bugs.python.org/

Cheers,
Chris
-- 
http://blog.rebertia.com



More information about the Python-list mailing list