[Csv] PEP 305
skip at pobox.com
Thu Oct 2 15:57:33 CEST 2003
Roberto> One last question: I thought that the "doublequote" flag in the
Roberto> definition of the Dialect class was supposed to deal with
Roberto> "dirty" .csv files like mine (regarding the inner double
Roberto> quotes, not the leading and trailing ones). So what is that
Roberto> flag useful for?
I may be misremembering, but I believe it tells the parser that the quote
character is doubled when embedded inside a field. If that's false, the the
escapechar field of the dialect must be set to a single-character string.
Hmmm... Maybe try this:
quotechar = '"'
delimiter = '.'
doublequote = False
escapechar = '"'
Weird, but it might also work.
More information about the Csv