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 flow2k
Recipients flow2k
Date 2019-03-08.21:59:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1552082392.37.0.332267389905.issue36246@roundup.psfhosted.org>
In-reply-to
Content
output = io.StringIO()
csvData = [1, 2, 'a', 'He said "what do you mean?"', "Whoa!\rNewlines!"]
writer = csv.writer(output,lineterminator='\n')
writer.writerow(csvData)
print(repr(output.getvalue())) #does not escape \r as expected
History
Date User Action Args
2019-03-08 21:59:52flow2ksetrecipients: + flow2k
2019-03-08 21:59:52flow2ksetmessageid: <1552082392.37.0.332267389905.issue36246@roundup.psfhosted.org>
2019-03-08 21:59:52flow2klinkissue36246 messages
2019-03-08 21:59:52flow2kcreate