[Tutor] Writing to CSV string containing quote and comma

2013-12-09 Thread J Sutar
# Re-sending from registered email address #. Hi, Posting for first time so hope I get the forum etiquette and rules right, please let me know otherwise. I'm trying to write to csv a string which contains double quotation marks and a comma however I'm finding that the write reads the comma as a

Re: [Tutor] Writing to CSV string containing quote and comma

2013-12-09 Thread J Sutar
writerow(words) writer.writerow([str(n) + " " + chr(34) + s + chr(34) for n, s in zip(numbers, words)]) On 9 December 2013 22:54, Steven D'Aprano wrote: > On Mon, Dec 09, 2013 at 09:52:34PM +, J Sutar wrote: > > > I'm trying to write to csv a string which