In <[EMAIL PROTECTED]>, Steve Holden
wrote:
> Laurent Laporte wrote:
>
>> I'm using cvs standard module under Python 2.3 / 2.4 to read a CSV
>> file. The file is opened in binary mode, so I keep the end of line
>> terminator.
>>
> It's not advisable to open a file like a CSV, intended for use as
Laurent Laporte wrote:
> hello,
>
> I'm using cvs standard module under Python 2.3 / 2.4 to read a CSV
> file. The file is opened in binary mode, so I keep the end of line
> terminator.
>
It's not advisable to open a file like a CSV, intended for use as text,
in binary mode.
> It appears that t
hello,
I'm using cvs standard module under Python 2.3 / 2.4 to read a CSV
file. The file is opened in binary mode, so I keep the end of line
terminator.
It appears that the csv.Sniffer force the line terminator to be
'\r\n'. It's fine under Windows but wrong under Linux or
Macintosh.
More about