Troubles with CSV file

Vladimir Ignatov vignatov at colorpilot.com
Mon May 17 06:52:30 EDT 2004


Thanks a much to everybody in discussion! You show me the light :-)

>> ""read this, man"", 1
>Invalid CSV...
>>      """read this, man""", 1
>Valid CSV...

Now I see that my CSV file is kind of invalid. Unfortunately it is not from
mine application so I must live with it (just for curiosity - this is the
*Powermarks 3.5* bookmark manager's output).

I replace all "" to """ as suggested and all works fine now. This is not the
ideal solution (sometimes csv file have a data like
<some-data>, 123, "", 345, <some-data>

... which supposed to be a blank string (not shure). But it is irrelevant
for me now and *replacing* approach is pretty satisfactory.

Thanks again for your help.

BTW
http://www.voidspace.org.uk/atlantibots/pythonutils.html  is unreachable
( "The page cannot be displayed" error )

    Vladimir Ignatov





More information about the Python-list mailing list