Hi,
I would like if the DictWriter would be able to write escape characters (\n and 
\r and their combinations such as \n\n\n and \r\n) as literal characters.
At the moment, DictWriter writes \n:s as new lines (shown in notepad or Excel) 
and I would like it to just write "\n" characters in my csv file.

I asked a question about this on Stack Overflow but have had no good answers 
yet. My question also has an example of the data and its form.
https://stackoverflow.com/questions/60073809/python-how-to-write-literal-n-and-r-characters-to-a-csv-file-with-dictwriter
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/FRN5DF5JVKBZZQWMA5CGG66NLZAYER2G/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to