[Tutor] Terminating "\M" characters with regard to csv.DictWriter
Cameron Simpson
cs at cskk.id.au
Tue Aug 10 00:39:22 EDT 2021
On 09Aug2021 20:47, Alex Kleider <alexkleider at gmail.com> wrote:
>On Sun, Aug 8, 2021 at 7:26 PM Dennis Lee Bieber <wlfraed at ix.netcom.com>
>wrote:
>> Are you sure it's a \M? Capital M?
>
>Yes, it is a capital M, here's the first line of the diff command output:
><
>first,last,phone,address,town,state,postal_code,country,email,dues,dock,kayak,mooring,status^M
That's "^M", not "\M". ^x is a common shorthand for control-x. And is
also what the "control" key does on your keyboard. ^J => newline, ^M =>
carriage return, etc.
Cheers,
Cameron Simpson <cs at cskk.id.au>
More information about the Tutor
mailing list