[Csv] confused about wrapping readers and writers
Skip Montanaro
skip at pobox.com
Mon Feb 10 19:30:44 CET 2003
Cliff> 1. Sniffer for guessing delimiter
Cliff> 2. Sniffer for guessing quotechar
Cliff> 3. Sniffer for guessing whether first row is header
These all sound fine.
Cliff> It would be easy to write a wrapper that calls all three
Cliff> consecutively and returns a dialect object (I don't think it's
Cliff> necessary to match against existing dialects, but maybe we
Cliff> should?).
You'd have to assume reasonable defaults for the other parameters. How
about line terminator and QUOTE_{ALL,MINIMAL,NONE,NONNUMERIC} sniffers?
(Are the QUOTE_* values used by readers?)
Cliff> 4. Row -> dict converter.
I don't think this will be necessary. I already added DictReader and
DictWriter classes to csv.py which do the pretty much obvious (to me) thing.
Cliff> What other things are we looking at?
Some proofreading/editing of the PEP and the libcsv.tex file?
Skip
More information about the Csv
mailing list