Python and writing a CSV file

Skip Montanaro skip at pobox.com
Wed Jan 21 19:39:03 EST 2004


    Kevin> I am new to Python and would like to attempt to write to a CSV
    Kevin> file. I have reviewed the documentation at
    Kevin> http://www.object-craft.com.au/projects/csv/ for the csv 1.0
    Kevin> module but I didn't see any information referring to writing (oe
    Kevin> creating) a CSV file with this module. Does this module have the
    Kevin> capability to write a CSV file? 

Yes, but you should upgrade to 2.3 (if you haven't already) and just use the
csv module which comes with it:

    http://www.python.org/doc/current/lib/module-csv.html

Skip




More information about the Python-list mailing list