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 catalin.iacob
Recipients catalin.iacob, ebreck, eric.araujo, skip.montanaro
Date 2011-07-06.21:20:31
SpamBayes Score 3.1814232e-06
Marked as misclassified No
Message-id <1309987232.23.0.778852890002.issue12178@psf.upfronthosting.co.za>
In-reply-to
Content
I looked at this and tried to provide a patch + tests. Please review.

The bug is that a writer can use writerow on some input data but if a reader with the same dialect reads them back they are different from the input ones. This happens when the input data contains escapechar. Contrary to msg136881, this happens regardless whether doublequote is True or False.

The docs say "On reading, the escapechar removes any special meaning from the following character". Therefore, I understand that on writing, escapechar must always be escaped by itself. If that doesn't happen, when reading it back, escapechar alters the thing that follows it instead of counting as escapechar which is precisely what this bug is about.
History
Date User Action Args
2011-07-06 21:20:32catalin.iacobsetrecipients: + catalin.iacob, skip.montanaro, eric.araujo, ebreck
2011-07-06 21:20:32catalin.iacobsetmessageid: <1309987232.23.0.778852890002.issue12178@psf.upfronthosting.co.za>
2011-07-06 21:20:31catalin.iacoblinkissue12178 messages
2011-07-06 21:20:31catalin.iacobcreate