ASCII delimited files
Mark Hammond
mhammond at skippinet.com.au
Thu Nov 11 00:39:16 EST 1999
Al Christians wrote in message <382A4330.833C4EBD at easystreet.com>...
>There's a trick with files of delimited fields. If a string field
>contains a delimiter (e.g. a comma in a csv file), then the field
>gets enclosed in quotes. The handling of quotes is probably trickier,
>IDK what the rules are if a field starts with or contains a single or
>double quote mark. I think I remember that some spreadsheets used tp
>routinely enclose all strings in quotes in CSV files, but I'm not sure.
Yes - a good CSV parser would make a very useful addition to the library!
Mark.
More information about the Python-list
mailing list