DSVWizard.py

Skip Montanaro skip at pobox.com
Mon Jan 27 01:37:24 CET 2003


    Cliff> I think even Excel has the option to import files using "/'/none
    Cliff> for text qualifiers.  This was the only shortcoming I saw in csv
    Cliff> (only " is used for quoting).

Actually, csv's parser objects have a writable quote_char attribute:

    >>> import csv
    >>> p = csv.parser()
    >>> p.quote_char
    '"'
    >>> p.quote_char = "'"
    >>> p.quote_char
    "'"

Skip



More information about the Csv mailing list