[Tutor] Terminating "\M" characters with regard to csv.DictWriter

Alex Kleider alexkleider at gmail.com
Tue Aug 10 11:08:26 EDT 2021


On Mon, Aug 9, 2021 at 11:59 PM Peter Otten <__peter__ at web.de> wrote:

> The line terminator is not the only thing controlled by a dialect. You
> can override the quoting spec with
>
> writer = csv.writer(
>      outstream, dialect="unix", quoting=csv.QUOTE_MINIMAL
> )
>
> or whatever quoting style you prefer.
>
>
Thanks, Peter, for pointing that out.  There's a lot in the 'csv' module
documentation that I hadn't appreciated.
Cheers,
Alex


More information about the Tutor mailing list