[CSV] Re: First Cut at CSV PEP

Dave Cole djc at object-craft.com.au
Wed Jan 29 01:07:18 CET 2003


>>>>> "Andrew" == Andrew McNamara <andrewm at object-craft.com.au> writes:

>> I suppose that exporting should raise an exception if you specify
>> any variation on the dialect in the writer function.
>> 
>> csvwriter = csv.writer(file("newnastiness.csv", "w"),
>> dialect='excel2000', delimiter='"')
>> 
>> 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'.

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.

- Dave

-- 
http://www.object-craft.com.au




More information about the Csv mailing list