Module for reading CSV data

Skip Montanaro skip at pobox.com
Fri Nov 9 17:55:21 EST 2001


    David> Is there a module for reading CSV files into a dictionary?  Or is
    David> there a builtin that is used in conjunction with readlines()?

>From just a few days ago in this newsgroup:

    From: Dave Cole <djc at object-craft.com.au>
    Sender: python-list-admin at python.org
    To: python-list at python.org
    Subject: csv-0.5 released
    Date: 06 Nov 2001 16:40:28 +1100

    The CSV module provides a fast CSV parser which can split and join CSV
    records which have been produced by Microsoft products such as Access
    and Excel.

    On Python 2.x the module outperforms string.split().  Of course the
    CSV parser can handle much more complex records than string.split()...

    This is a bugfix release.

    The changes in this release are:

    1- Fixed bug in memory allocation of internal parser buffer - thanks
       to John Machin for pointing this out.

    2- Fixed compile warning on Solaris - thanks to Adam Goucher for
       reporting this.

    The module homepage:

            http://www.object-craft.com.au/projects/csv/

    For people who do not have a C compiler on Windows I have put a Python
    2.1 binary up here:

            http://www.object-craft.com.au/projects/csv/csv.pyd

    - Dave

Google is your friend...

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list