[Csv] trial zip/tar packages of csv module available
Dave Cole
djc at object-craft.com.au
Fri Feb 14 14:39:28 CET 2003
>>>>> "John" == John Machin <sjmachin at lexicon.net> writes:
John> Frankly, no. You've dropped the "given csvfile" (almost), but
John> you haven't said whether a "line" is expected to be terminated,
John> and if so with what: (a) \n irrespective of platform (b)
John> platform's native terminator (c) \r or \r\n or \n (don't care
John> which).
John> My guess is that if the "line" is terminated by \r or \r\n or
John> \n, you'll ignore the terminator, and if it's not terminated at
John> all, then there's nothing to ignore, and happiness prevails. Am
John> I correct?
Almost.
Since the parser expects you to deliver a sequence of lines via an
iterable, it requires that line termination be at the end of any
string supplied. The parser will raise an exception if any characters
follow a line terminator on any individual line string.
- Dave
--
http://www.object-craft.com.au
More information about the Csv
mailing list