This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ajaksu2
Recipients ajaksu2, andrewmcnamara, gnbond, goodger, rhettinger, skip.montanaro
Date 2009-02-14.13:56:28
SpamBayes Score 0.0019738488
Marked as misclassified No
Message-id <1234619790.39.0.22073767377.issue967934@psf.upfronthosting.co.za>
In-reply-to
Content
IIUC, I get the correct behavior:

trunk-py$ ./python ~/Desktop/tcsv.py
['fld1', 'fld2', 'fld3 ', 'fld4']
['fld1', 'fld2', 'fld3 \r', 'fld4']

trunk-py$ cat ~/Desktop/tcsv.py
#! /usr/local/bin/python

import csv

d = 'fld1,fld2,"fld3 ",fld4\r\n'
d2 = 'fld1,fld2,"fld3 \r'
d3 = '",fld4\r\n'

r = csv.reader([d, d2, d3], dialect="excel")
for f in r:
        print f
History
Date User Action Args
2009-02-14 13:56:30ajaksu2setrecipients: + ajaksu2, skip.montanaro, rhettinger, goodger, gnbond, andrewmcnamara
2009-02-14 13:56:30ajaksu2setmessageid: <1234619790.39.0.22073767377.issue967934@psf.upfronthosting.co.za>
2009-02-14 13:56:28ajaksu2linkissue967934 messages
2009-02-14 13:56:28ajaksu2create