[Csv] Implemented skipinitialspace
Dave Cole
djc at object-craft.com.au
Sun Feb 2 12:15:45 CET 2003
Well that was easy, just one extra test.
>>> import _csv
>>> p = _csv.parser()
>>> s = '"quoted", "not quoted, but this ""field"" has delimiters and quotes"'
>>> p.skipinitialspace = 0
>>> p.parse(s)
['quoted', ' "not quoted', ' but this ""field"" has delimiters and quotes"']
>>> p.skipinitialspace = 1
>>> p.parse(s)
['quoted', 'not quoted, but this "field" has delimiters and quotes']
- Dave
--
http://www.object-craft.com.au
More information about the Csv
mailing list