how can i change the text delimiter

skip at pobox.com skip at pobox.com
Wed Aug 30 08:11:57 EDT 2006


    sonald> fast csv is the the csv module for Python...  and actually the
    sonald> string cannot be modified because it is received from a third
    sonald> party and we are not supposed to modify the data in any way..

    sonald> for details on the fast CSV module please visit

    sonald> www.object-craft.com.au/projects/csv/ or

    sonald> import fastcsv
    sonald> csv = fastcsv.parser(strict = 1,field_sep = ',') // part of
    sonald> configuration

    sonald> and somewhere in the code... we are using

    sonald> data = csv.parse(line)

    sonald> all i mean to say is, csv.reader is nowhere in the code and
    sonald> somehow we got to modify the existing code.

You're using Object Craft's old csv module.  They are also the primary
authors of the csv module that's been shipped with Python since 2.3.  I
suggest you convert your code to use the newer module if possible.  If
that's not possible (it's not all that hard - I did it a couple years ago),
try posting a note to csv at mojam.com.  The Object Craft folks are on that
list and may be able to help you out.  I think they're here as well, though
may not watch this group/list as closely.

Skip




More information about the Python-list mailing list