[Csv] Moving _csv.c closer to PEP

Skip Montanaro skip at pobox.com
Thu Jan 30 15:25:58 CET 2003


    Dave> In the process of fixing _csv.c so it will handle the parameters
    Dave> specified in the PEP I came across yet another configurable
    Dave> dialect setting.

    Dave>     doublequote

    Dave>         When True quotechar in a field value is represented by two
    Dave>         consecutive quotechar.

Isn't that implied as long as quoting is not "never" and escapechar is None?
If so, and we decide to have a separate doublequote parameter anyway,
checking that relationship should be part of validating the parameter set.

Speaking of doubling things, can the low-level partser support
mulit-character quotechar or delimiter strings?  Recall I mentioned the
previous client who didn't quote anything in their private file format and
used ::: as the field separator.

Skip



More information about the Csv mailing list