[CSV] Re: First Cut at CSV PEP
Andrew McNamara
andrewm at object-craft.com.au
Wed Jan 29 01:15:44 CET 2003
>>> That should raise an exception.
>
>Andrew> You mean "raise an exception because the result would be
>Andrew> ambiguous", or "raise an exception because it's not
>Andrew> excel2000"?
>
>Because it is not 'excel2000'.
I don't like it, as I mentioned in my previous e-mail. Excel (97, at
least) doesn't let you tweak and tune, so *any* non-default settings are
"not excel".
A better idea would be to have the dialect turn on "strict_blah" if it's
thought necessary.
But we still need to raise exceptions on nonsense formats (like using
quote as a field separator while also using it as the quote character).
>Andrew> BTW, I don't have access to Excel 2000, only 97. I'm going to
>Andrew> assume they're the same until proven otherwise (bad
>Andrew> assumption, I know).
>
>This is a prime example of why we should support dialects.
And every dialect should be supported by a wad of tests... 8-)
--
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/
More information about the Csv
mailing list