Subject: Re: bug#12409: 24.2.50; OS X Python completion leaks junk to inferior-python-mode buffer

From: Stefan Monnier <[email-masked]>
Date: Mon, 08 Oct 2012 15:07:57 -0400

> (format "\r?\n\\(?:%s\\|%s\\|%s\\)$" works.  It is a bad idea to use literal
> ^M in files, so take Andreas advice and use \r.

BTW, could someone investigate into the cause of these ^M?
IOW, we need to look at the actual bytes that Python sends to Emacs,
then figure out why Emacs's EOL-conversion doesn't handle them (are
the bytes wrong, or is the process's coding-system set incorrectly?).

        Stefan