GNU bug report logs - #32042
26.1; python-shell-send-buffer with ipython 6.x shows "plumbing" code along with python error message

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Jaan Altosaar <altosaar@HIDDEN>; Keywords: confirmed; dated Mon, 2 Jul 2018 20:25:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Changed bug title to '26.1; python-shell-send-buffer with ipython 6.x shows "plumbing" code along with python error message' from '26.1; python.el with ipython prompt leads to superfluous interactive shell output' Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) confirmed. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Disconnected #32042 from all other report(s). Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 32042 <at> debbugs.gnu.org:


Received: (at 32042) by debbugs.gnu.org; 11 Jul 2018 00:32:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 10 20:32:44 2018
Received: from localhost ([127.0.0.1]:54489 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fd33j-0000M2-SR
	for submit <at> debbugs.gnu.org; Tue, 10 Jul 2018 20:32:44 -0400
Received: from mail-it0-f47.google.com ([209.85.214.47]:36650)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1fd33h-0000Lg-Qi; Tue, 10 Jul 2018 20:32:42 -0400
Received: by mail-it0-f47.google.com with SMTP id j185-v6so1217886ite.1;
 Tue, 10 Jul 2018 17:32:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=bW6/nwf7w7pVLPN+3OtkShWd3t8wVUtdMaJPlst1o/8=;
 b=Ss8+p11SgY5Wly/GveATOTAUpLRSWy1ZuqjcGuxHJndlea8RjQRwgbqeerD+BWxQBl
 tdLkspSLHvRRkucwkNAspsD5czDXRTsHT0dGtpwlXFWfGEPNWEdQ0rOZDrI+4RQXuE4K
 TbjJ6ruqY/LD6gNu/l98bTTQ1Gn3xqcTswEz+X0T1SwXgkO4vv6j85UhBZVegh/vEyex
 Ckr2+QvwAFtdj+Tryi7jJLoBpGtlR2lGpLyEnoKMU7XuopV2PS0Rii2/eQ+Ax2gCcYN6
 wsAGAsBxbuYkRDZYNT/PPFuwksPeKwgy5KYyHRJ4h3BK8MIa5y3G8XYXXCSd4wW5BHS4
 Vu4w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=bW6/nwf7w7pVLPN+3OtkShWd3t8wVUtdMaJPlst1o/8=;
 b=ltoh9eLFDXcqlB1lNqda4USewqN+8wGYmnUJjIW8cErIxa7SwwBdKoyQsdOTC9bZHO
 9mfs0uNuKPavnk2dzzP8g23ubrBKa4mGyw4roVuiMmBwTnKS9qgGldfFpHqfqSxH5KrM
 ijw9izn+4U6OKRCpjzgKhFB+5o1icd5PKetMm4Azkg2u7kdcl9cerVNBVxIw547r1xrg
 CWD88NlzEiZFAxJ2C1VbBsDdM8SfU7O0exyEMaW6gk/wl79+tsipbfa1gJRU+nduoCWm
 E68vp89cVMhPaKXglzdH8Eug6bCAADUH9km+OqNoKwpIF3s94VP1DYUQG7U7GXapNtbq
 JOww==
X-Gm-Message-State: APt69E3oocVLHEIj2Vt/riHQAzgwjybqdNf7DeSiza/nP0mgzr8McFPB
 dB6BQtctM80BGtcXE00sQ/ldjA==
X-Google-Smtp-Source: AAOMgpdQwRGasT6Rn9IDUVg/RqNIo17SIo9huS2EVcN6LW3HHe27GnLZ7h/2AdEX7gDnEWKnYrO6Cw==
X-Received: by 2002:a02:fd6:: with SMTP id 83-v6mr22912637jao.35.1531269156032; 
 Tue, 10 Jul 2018 17:32:36 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 x6-v6sm5763247ith.1.2018.07.10.17.32.34
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Tue, 10 Jul 2018 17:32:35 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Jaan Altosaar <altosaar@HIDDEN>
Subject: Re: bug#32042: 26.1;
 python.el with ipython prompt leads to superfluous interactive shell
 output
References: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN>
 <87zhz9l6p9.fsf@HIDDEN>
 <CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@HIDDEN>
 <87va9xkuyu.fsf@HIDDEN>
 <CADzm6zLLm+0m4rnrL152jmiKkC_ocK9vsdJ2DNQuAvEm4d4b-g@HIDDEN>
 <mailman.3332.1531166168.1292.bug-gnu-emacs@HIDDEN>
 <CADzm6z+p5eJtOFN7oMg9jFbOW-pkYqPtKgbNH+YCyFQ4zAxiqA@HIDDEN>
 <mailman.3400.1531262228.1292.bug-gnu-emacs@HIDDEN>
 <CADzm6z+bfCEYOFFvQ5++WtHrX_27Xicuc4QQM6o=VbpH1GJ92Q@HIDDEN>
Date: Tue, 10 Jul 2018 20:32:33 -0400
In-Reply-To: <CADzm6z+bfCEYOFFvQ5++WtHrX_27Xicuc4QQM6o=VbpH1GJ92Q@HIDDEN> (Jaan
 Altosaar's message of "Tue, 10 Jul 2018 18:51:32 -0400")
Message-ID: <87va9mboim.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 32042
Cc: "32042 <at> debbugs.gnu.org" <32042 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

unmerge 32042
tags 32042 + confirmed
retitle 32042 26.1; python-shell-send-buffer with ipython 6.x shows "plumbing" code along with python error message
quit

Jaan Altosaar <altosaar@HIDDEN> writes:

> This is from within emacs.

Oh right, I forgot the bad output only happens when you send from file
or buffer.

I dusted off my Arch box, and I can see the same problem there (it has
ipython 6.3.1).  I don't see it on my normal Debian box which has
ipython 5.1.0.  So something must have changed in ipython's behaviour.

> Sorry for the double messages; I resent only to
> 32042 <at> debbugs.gnu.org because I received this message:
>
> Address not found
> Your message wasn't delivered to gnu.emacs.bug@HIDDEN because the
> address couldn't be found, or is unable to receive mail.

Ah, the gnu.emacs.bug@HIDDEN email address is indeed bogus,
but as long as the 32042 <at> debbugs.gnu.org message goes through, the bug
tracker is fine.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32042; Package emacs. Full text available.

Message received at 32042 <at> debbugs.gnu.org:


Received: (at 32042) by debbugs.gnu.org; 10 Jul 2018 22:51:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 10 18:51:45 2018
Received: from localhost ([127.0.0.1]:54430 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fd1U1-0005zo-Ae
	for submit <at> debbugs.gnu.org; Tue, 10 Jul 2018 18:51:45 -0400
Received: from ppa01.princeton.edu ([128.112.128.213]:38216 helo=Princeton.EDU)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <altosaar@HIDDEN>) id 1fd1U0-0005zc-1c
 for 32042 <at> debbugs.gnu.org; Tue, 10 Jul 2018 18:51:44 -0400
Received: from csgsmtp202l.Princeton.EDU (csgsmtp202l.Princeton.EDU
 [140.180.223.155])
 by ppa01.princeton.edu (8.16.0.21/8.16.0.21) with ESMTPS id w6AMpcuI019448
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <32042 <at> debbugs.gnu.org>; Tue, 10 Jul 2018 18:51:38 -0400
Received: from mail-io0-f173.google.com (mail-io0-f173.google.com
 [209.85.223.173]) (authenticated authid=altosaar bits=0)
 by csgsmtp202l.Princeton.EDU (8.14.4/8.12.9) with ESMTP id w6AMpXjd030304
 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT)
 for <32042 <at> debbugs.gnu.org>; Tue, 10 Jul 2018 18:51:38 -0400
Received: by mail-io0-f173.google.com with SMTP id i18-v6so6171208ioj.13
 for <32042 <at> debbugs.gnu.org>; Tue, 10 Jul 2018 15:51:38 -0700 (PDT)
X-Gm-Message-State: APt69E3BZuM5pyIyq3KaLaoZMNObQAr7GjiMUngySHkcPjPNeLowfPA/
 lvfESbwVXSfFCUVOh2AOuSM3qtp1b08DaHgqehs=
X-Google-Smtp-Source: AAOMgpe29j8lc54WWFUvcH0MaVswhe0XhV6TLvuGEqrqVkchVRM3Ehi0fr6aFJP8KQoOUwCUt1cY7sjHkEJFDB+fWKU=
X-Received: by 2002:a6b:8f4e:: with SMTP id
 r75-v6mr23174591iod.252.1531263093043; 
 Tue, 10 Jul 2018 15:51:33 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a6b:2301:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 15:51:32
 -0700 (PDT)
In-Reply-To: <mailman.3400.1531262228.1292.bug-gnu-emacs@HIDDEN>
References: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN>
 <87zhz9l6p9.fsf@HIDDEN>
 <CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@HIDDEN>
 <87va9xkuyu.fsf@HIDDEN>
 <CADzm6zLLm+0m4rnrL152jmiKkC_ocK9vsdJ2DNQuAvEm4d4b-g@HIDDEN>
 <mailman.3332.1531166168.1292.bug-gnu-emacs@HIDDEN>
 <CADzm6z+p5eJtOFN7oMg9jFbOW-pkYqPtKgbNH+YCyFQ4zAxiqA@HIDDEN>
 <mailman.3400.1531262228.1292.bug-gnu-emacs@HIDDEN>
From: Jaan Altosaar <altosaar@HIDDEN>
Date: Tue, 10 Jul 2018 18:51:32 -0400
X-Gmail-Original-Message-ID: <CADzm6z+bfCEYOFFvQ5++WtHrX_27Xicuc4QQM6o=VbpH1GJ92Q@HIDDEN>
Message-ID: <CADzm6z+bfCEYOFFvQ5++WtHrX_27Xicuc4QQM6o=VbpH1GJ92Q@HIDDEN>
Subject: Re: bug#32042: 26.1; python.el with ipython prompt leads to
 superfluous interactive shell output
To: "gnu.emacs.bug@HIDDEN" <gnu.emacs.bug@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000b7f98b0570acf8cb"
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, ,
 definitions=2018-07-10_08:, , signatures=0
X-Proofpoint-Spam-Details: rule=quarantine_notspam policy=quarantine score=0
 suspectscore=1
 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0
 mlxlogscore=947 adultscore=0 classifier=spam adjust=0 reason=mlx
 scancount=1 engine=8.0.1-1806210000 definitions=main-1807100243
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 32042
Cc: "32042 <at> debbugs.gnu.org" <32042 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--000000000000b7f98b0570acf8cb
Content-Type: text/plain; charset="UTF-8"

This is from within emacs.

Contents of init.el:

```
(setq
 python-shell-interpreter "ipython"
 python-shell-interpreter-args "--simple-prompt --classic --nosep"
)
```

And launching the prompt with `M-x run-python`.

Sorry for the double messages; I resent only to
32042 <at> debbugs.gnu.org because I received this message:

Address not found
Your message wasn't delivered to gnu.emacs.bug@HIDDEN because the
address couldn't be found, or is unable to receive mail.

On Tuesday, July 10, 2018, Noam Postavsky <npostavs@HIDDEN> wrote:

> Jaan Altosaar <altosaar@HIDDEN> writes:
>
> > Python 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:07:29)
> > Type 'copyright', 'credits' or 'license' for more information
> > IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
> >>>> import readline; print(readline.__doc__); print(readline.__file__)
> > Importing this module enables command line editing using GNU readline.
>
> Hmm, maybe it's not the same problem then.  Do you see the same "using
> GNU readline" output when doing the same from within Emacs?
>
> PS now your messages are arriving in duplicate for some reason.
>
>
>
>
>

--000000000000b7f98b0570acf8cb
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

This is from within emacs.=C2=A0<div><br></div><div>Contents of init.el:<di=
v><div><br></div><div>```</div><div>(setq</div><div>=C2=A0python-shell-inte=
rpreter &quot;ipython&quot;</div><div>=C2=A0python-shell-interpreter-args &=
quot;--simple-prompt --classic --nosep&quot;</div><div>)</div><div>```</div=
></div><div><br></div><div>And launching the prompt with `M-x run-python`.<=
/div><div><div><br></div><div>Sorry for the double messages; I resent only =
to=C2=A0</div><div><span style=3D"background-color:rgb(238,238,238);color:r=
gb(34,34,34);font-family:HelveticaNeue-Light,&quot;Helvetica Neue Light&quo=
t;,&quot;Helvetica Neue&quot;,Helvetica,Arial,sans-serif;white-space:nowrap=
"><a href=3D"mailto:32042 <at> debbugs.gnu.org">32042 <at> debbugs.gnu.org</a></span>=
=C2=A0because I received this message:</div><div><br></div><div><div>Addres=
s not found</div><div>Your message wasn&#39;t delivered to <a href=3D"mailt=
o:gnu.emacs.bug@HIDDEN">gnu.emacs.bug@HIDDEN</a> becaus=
e the address couldn&#39;t be found, or is unable to receive mail.</div><di=
v><div><br>On Tuesday, July 10, 2018, Noam Postavsky &lt;<a href=3D"mailto:=
npostavs@HIDDEN">npostavs@HIDDEN</a>&gt; wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">Jaan Altosaar &lt;<a href=3D"mailto:altosaar@HIDDEN">a=
ltosaar@HIDDEN</a>&gt; writes:<br>
<br>
&gt; Python 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:07:2=
9)<br>
&gt; Type &#39;copyright&#39;, &#39;credits&#39; or &#39;license&#39; for m=
ore information<br>
&gt; IPython 6.4.0 -- An enhanced Interactive Python. Type &#39;?&#39; for =
help.<br>
&gt;&gt;&gt;&gt; import readline; print(readline.__doc__); print(readline._=
_file__)<br>
&gt; Importing this module enables command line editing using GNU readline.=
<br>
<br>
Hmm, maybe it&#39;s not the same problem then.=C2=A0 Do you see the same &q=
uot;using<br>
GNU readline&quot; output when doing the same from within Emacs?<br>
<br>
PS now your messages are arriving in duplicate for some reason.<br>
<br>
<br>
<br>
<br>
</blockquote></div></div></div></div></div>

--000000000000b7f98b0570acf8cb--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32042; Package emacs. Full text available.

Message received at 32042 <at> debbugs.gnu.org:


Received: (at 32042) by debbugs.gnu.org; 10 Jul 2018 22:36:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 10 18:36:13 2018
Received: from localhost ([127.0.0.1]:54419 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fd1Ez-0005cU-LM
	for submit <at> debbugs.gnu.org; Tue, 10 Jul 2018 18:36:13 -0400
Received: from mail-it0-f48.google.com ([209.85.214.48]:52357)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1fd1Ew-0005cF-3S
 for 32042 <at> debbugs.gnu.org; Tue, 10 Jul 2018 18:36:10 -0400
Received: by mail-it0-f48.google.com with SMTP id p4-v6so999128itf.2
 for <32042 <at> debbugs.gnu.org>; Tue, 10 Jul 2018 15:36:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=UKCzje7u95qcD7z/NklMPED9BouPsTnqclcWrl+ktcY=;
 b=PxzbQ9b0PNkpVnFfburu0WFp00v4UyY//pzxtBRHB1N5SrvaLyMIzJ/MvnaRADqzv4
 4+PBjUGO2R6tj8ieIE06Db72PQgd0k9Y7gs/BOZaTU4bfhbgwyNMo3gCdGz9iZ5XY8V+
 NHg2R1a9AhqvyYVK6XwN+PmVvrkKYEUKYtUWWI9dTMxderISihS10mhVxGEKNs55SeRM
 KFuqTULNDY/NydOVpUzUnfkXSubCnHioUGQucIO21HsHYKX1jfGhDH08KZptczK4AMGp
 QLMHb7yuutUgX5Ho6+kFHaMsTkskKu9YOoxRKqN8amfS1JHAsxfeGJyKll1uDxTlT1PX
 ptpw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=UKCzje7u95qcD7z/NklMPED9BouPsTnqclcWrl+ktcY=;
 b=JJvc/dwdozCPu6Jw71IBRd5y2C9j+f40snpCkC5FB4yfauszdmrJ9TRDhjEspTfCcb
 PAbHVFmu3FK2GuPy6N5Fxc/yvehqB05GriiQRSrfL93sbmuo0lQePBVN6z0N41u3JMTN
 eFJQF496Uuv6cj7E5wWRNy8tyQGbgFTmpHt+/EBSLTo8phqFlKTxQVyinVvod2k8q0RR
 3wDOBeiriuryV26j4BSKndES5SdWKPJYlkvS6ci9EY+vkCZijdDshNi2xJY7KNe/eNRs
 5DexPZIHMRxLccDEip2nFUd/urLZqmB8O8xKnvdgWIkLar4OKcClPvroeCVFRFxRWWU2
 9JkA==
X-Gm-Message-State: APt69E0ffpkDZXSj1IINP92mXmNdAWbYotRBsge3grsQ0mw8VE1vXLhx
 DGeIQ6mB8PhDOk3mQxK20RQViQ==
X-Google-Smtp-Source: AAOMgpfh5qXdKU4eTq9yuMHWQcvIIGAzW19wKESgW86lHi8RYG44ESFCkQpvoyKzCTQFX9hxBddS3w==
X-Received: by 2002:a24:5f92:: with SMTP id
 r140-v6mr14760707itb.45.1531262164394; 
 Tue, 10 Jul 2018 15:36:04 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 v137-v6sm3053794ita.2.2018.07.10.15.36.03
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Tue, 10 Jul 2018 15:36:03 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Jaan Altosaar <altosaar@HIDDEN>
Subject: Re: bug#32042: 26.1;
 python.el with ipython prompt leads to superfluous interactive shell
 output
References: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN>
 <87zhz9l6p9.fsf@HIDDEN>
 <CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@HIDDEN>
 <87va9xkuyu.fsf@HIDDEN>
 <CADzm6zLLm+0m4rnrL152jmiKkC_ocK9vsdJ2DNQuAvEm4d4b-g@HIDDEN>
 <mailman.3332.1531166168.1292.bug-gnu-emacs@HIDDEN>
 <CADzm6z+p5eJtOFN7oMg9jFbOW-pkYqPtKgbNH+YCyFQ4zAxiqA@HIDDEN>
Date: Tue, 10 Jul 2018 18:36:02 -0400
In-Reply-To: <CADzm6z+p5eJtOFN7oMg9jFbOW-pkYqPtKgbNH+YCyFQ4zAxiqA@HIDDEN> (Jaan
 Altosaar's message of "Tue, 10 Jul 2018 18:09:34 -0400")
Message-ID: <87y3eibtwt.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 32042
Cc: "32042 <at> debbugs.gnu.org" <32042 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jaan Altosaar <altosaar@HIDDEN> writes:

> Python 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:07:29)
> Type 'copyright', 'credits' or 'license' for more information
> IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
>>>> import readline; print(readline.__doc__); print(readline.__file__)
> Importing this module enables command line editing using GNU readline.

Hmm, maybe it's not the same problem then.  Do you see the same "using
GNU readline" output when doing the same from within Emacs?

PS now your messages are arriving in duplicate for some reason.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32042; Package emacs. Full text available.

Message received at 32042 <at> debbugs.gnu.org:


Received: (at 32042) by debbugs.gnu.org; 10 Jul 2018 22:14:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 10 18:14:56 2018
Received: from localhost ([127.0.0.1]:54413 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fd0uN-000549-Pz
	for submit <at> debbugs.gnu.org; Tue, 10 Jul 2018 18:14:56 -0400
Received: from ppa01.princeton.edu ([128.112.128.213]:38520 helo=Princeton.EDU)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <altosaar@HIDDEN>) id 1fd0uM-00053s-9y
 for 32042 <at> debbugs.gnu.org; Tue, 10 Jul 2018 18:14:54 -0400
Received: from csgsmtp202l.Princeton.EDU (csgsmtp202l.Princeton.EDU
 [140.180.223.155])
 by ppa01.princeton.edu (8.16.0.21/8.16.0.21) with ESMTPS id w6AMEmSN026717
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <32042 <at> debbugs.gnu.org>; Tue, 10 Jul 2018 18:14:48 -0400
Received: from mail-it0-f45.google.com (mail-it0-f45.google.com
 [209.85.214.45]) (authenticated authid=altosaar bits=0)
 by csgsmtp202l.Princeton.EDU (8.14.4/8.12.9) with ESMTP id w6AMEhS7017163
 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT)
 for <32042 <at> debbugs.gnu.org>; Tue, 10 Jul 2018 18:14:48 -0400
Received: by mail-it0-f45.google.com with SMTP id d191-v6so16065396ite.1
 for <32042 <at> debbugs.gnu.org>; Tue, 10 Jul 2018 15:14:48 -0700 (PDT)
X-Gm-Message-State: APt69E1Y7pmoZS85k9wTiboV5j06T7RwoaWWrO3w4/1wsCR+sbm1+6BY
 pSy5hX0ucSE//kW6Ek7mcjB+HSg4IJ7NWye/rYY=
X-Google-Smtp-Source: AAOMgpeKZ2PFazJ27ydJ2ltGOmxo4uMLn227oNAPjVZr1zK7T+iK2ypoxnO1URn4rwbIQCrcETigFsi3oojCHqR8Ul8=
X-Received: by 2002:a24:f509:: with SMTP id
 k9-v6mr10157583ith.98.1531260883346; 
 Tue, 10 Jul 2018 15:14:43 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a6b:2301:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 15:14:42
 -0700 (PDT)
In-Reply-To: <mailman.3332.1531166168.1292.bug-gnu-emacs@HIDDEN>
References: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN>
 <87zhz9l6p9.fsf@HIDDEN>
 <CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@HIDDEN>
 <87va9xkuyu.fsf@HIDDEN>
 <CADzm6zLLm+0m4rnrL152jmiKkC_ocK9vsdJ2DNQuAvEm4d4b-g@HIDDEN>
 <mailman.3332.1531166168.1292.bug-gnu-emacs@HIDDEN>
From: Jaan Altosaar <altosaar@HIDDEN>
Date: Tue, 10 Jul 2018 18:14:42 -0400
X-Gmail-Original-Message-ID: <CADzm6z+FH1G=ZKP67DUg7_mhxEcrzjSh_8X48fDJd+EL=UJ9jw@HIDDEN>
Message-ID: <CADzm6z+FH1G=ZKP67DUg7_mhxEcrzjSh_8X48fDJd+EL=UJ9jw@HIDDEN>
Subject: Re: bug#32042: 26.1; python.el with ipython prompt leads to
 superfluous interactive shell output
To: 32042 <at> debbugs.gnu.org
Content-Type: multipart/alternative; boundary="00000000000002abf70570ac7561"
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, ,
 definitions=2018-07-10_08:, , signatures=0
X-Proofpoint-Spam-Details: rule=quarantine_notspam policy=quarantine score=0
 suspectscore=37
 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0
 mlxlogscore=810 adultscore=0 classifier=spam adjust=0 reason=mlx
 scancount=1 engine=8.0.1-1806210000 definitions=main-1807100235
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 32042
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--00000000000002abf70570ac7561
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thanks! It looks like it's the anaconda readline:

```
Python 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:07:29)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
>>> import readline; print(readline.__doc__); print(readline.__file__)
Importing this module enables command line editing using GNU readline.
/usr/local/anaconda3/lib/python3.6/site-packages/
readline.cpython-36m-darwin.so
```

I tried using gnureadline too but get the same broken output.

```
>>> import readline
>>> print(readline.__doc__); print(readline.__file__)
Importing this module enables command line editing using GNU readline.
/usr/local/anaconda3/lib/python3.6/site-packages/readline.py
>>> cat /usr/local/anaconda3/lib/python3.6/site-packages/readline.py
from gnureadline import *
from gnureadline import __doc__
```

On Monday, July 9, 2018, Noam Postavsky <npostavs@HIDDEN> wrote:

> On 9 July 2018 at 08:59, Jaan Altosaar <altosaar@HIDDEN> wrote:
> > My bad! Reply alling to keep 32042 <at> debbugs.gnu.org in cc. Hope this
> works=E2=80=94
>
> > Still getting the same broken output.
> >
> > Any other ideas?
>
> Can you show the result of the python expressions at the bottom of
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D32042#19
>
>
>
>

--00000000000002abf70570ac7561
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div><br></div><div>Thanks! It looks like it&#39;s the anaconda readline:</=
div><div><br></div><div>```</div><div>Python 3.6.6 |Anaconda custom (64-bit=
)| (default, Jun 28 2018, 11:07:29)</div><div>Type &#39;copyright&#39;, &#3=
9;credits&#39; or &#39;license&#39; for more information</div><div>IPython =
6.4.0 -- An enhanced Interactive Python. Type &#39;?&#39; for help.</div><d=
iv>&gt;&gt;&gt; import readline; print(readline.__doc__); print(readline.__=
file__)</div><div>Importing this module enables command line editing using =
GNU readline.</div><div>/usr/local/anaconda3/lib/python3.6/site-packages/<a=
 href=3D"http://readline.cpython-36m-darwin.so">readline.cpython-36m-darwin=
.so</a></div><div>```</div><div><br></div><div>I tried using gnureadline to=
o but get the same broken output.</div><div><br></div><div>```</div><div>&g=
t;&gt;&gt; import readline</div><div>&gt;&gt;&gt; print(readline.__doc__); =
print(readline.__file__)</div><div>Importing this module enables command li=
ne editing using GNU readline.</div><div>/usr/local/anaconda3/lib/python3.6=
/site-packages/readline.py</div><div>&gt;&gt;&gt; cat /usr/local/anaconda3/=
lib/python3.6/site-packages/readline.py</div><div>from gnureadline import *=
</div><div>from gnureadline import __doc__</div><div>```</div><br>On Monday=
, July 9, 2018, Noam Postavsky &lt;<a href=3D"mailto:npostavs@HIDDEN">np=
ostavs@HIDDEN</a>&gt; wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 9 Jul=
y 2018 at 08:59, Jaan Altosaar &lt;<a href=3D"mailto:altosaar@HIDDEN=
">altosaar@HIDDEN</a>&gt; wrote:<br>
&gt; My bad! Reply alling to keep <a href=3D"mailto:32042 <at> debbugs.gnu.org">=
32042 <at> debbugs.gnu.org</a> in cc. Hope this works=E2=80=94<br>
<br>
&gt; Still getting the same broken output.<br>
&gt;<br>
&gt; Any other ideas?<br>
<br>
Can you show the result of the python expressions at the bottom of<br>
<a href=3D"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D32042#19" target=
=3D"_blank">https://debbugs.gnu.org/cgi/<wbr>bugreport.cgi?bug=3D32042#19</=
a><br>
<br>
<br>
<br>
</blockquote>

--00000000000002abf70570ac7561--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32042; Package emacs. Full text available.

Message received at 32042 <at> debbugs.gnu.org:


Received: (at 32042) by debbugs.gnu.org; 10 Jul 2018 22:09:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 10 18:09:49 2018
Received: from localhost ([127.0.0.1]:54407 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fd0pR-0004wH-2Y
	for submit <at> debbugs.gnu.org; Tue, 10 Jul 2018 18:09:49 -0400
Received: from ppa02.princeton.edu ([128.112.128.216]:58916 helo=Princeton.EDU)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <altosaar@HIDDEN>) id 1fd0pO-0004w4-JX
 for 32042 <at> debbugs.gnu.org; Tue, 10 Jul 2018 18:09:47 -0400
Received: from csgsmtp203l.Princeton.EDU (csgsmtp203l.Princeton.EDU
 [140.180.223.156])
 by ppa02.princeton.edu (8.16.0.21/8.16.0.21) with ESMTPS id w6AM9fi5001852
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <32042 <at> debbugs.gnu.org>; Tue, 10 Jul 2018 18:09:41 -0400
Received: from mail-io0-f182.google.com (mail-io0-f182.google.com
 [209.85.223.182]) (authenticated authid=altosaar bits=0)
 by csgsmtp203l.Princeton.EDU (8.14.4/8.12.9) with ESMTP id w6AM9ZGr023412
 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT)
 for <32042 <at> debbugs.gnu.org>; Tue, 10 Jul 2018 18:09:41 -0400
Received: by mail-io0-f182.google.com with SMTP id q19-v6so21825469ioh.11
 for <32042 <at> debbugs.gnu.org>; Tue, 10 Jul 2018 15:09:41 -0700 (PDT)
X-Gm-Message-State: AOUpUlEJiABrTL9yRaLcptr7mzVoKwMHN9a0/Zzu7JCS2TLsFsS8MH+T
 2lbNccPFmsrmIBH9IXYxSutCtkMlFwsxDBHrk08=
X-Google-Smtp-Source: AAOMgpf68LtqrC22JTbU+VyFTvVPNK/zxF2q6blAlyY9a0wzONDqAF3SvOr6q8WT5C0Fsg3wFGxGSAJ2o7/hKDr0DFg=
X-Received: by 2002:a6b:a313:: with SMTP id
 m19-v6mr22406541ioe.98.1531260575451; 
 Tue, 10 Jul 2018 15:09:35 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a6b:2301:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 15:09:34
 -0700 (PDT)
In-Reply-To: <mailman.3332.1531166168.1292.bug-gnu-emacs@HIDDEN>
References: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN>
 <87zhz9l6p9.fsf@HIDDEN>
 <CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@HIDDEN>
 <87va9xkuyu.fsf@HIDDEN>
 <CADzm6zLLm+0m4rnrL152jmiKkC_ocK9vsdJ2DNQuAvEm4d4b-g@HIDDEN>
 <mailman.3332.1531166168.1292.bug-gnu-emacs@HIDDEN>
From: Jaan Altosaar <altosaar@HIDDEN>
Date: Tue, 10 Jul 2018 18:09:34 -0400
X-Gmail-Original-Message-ID: <CADzm6z+p5eJtOFN7oMg9jFbOW-pkYqPtKgbNH+YCyFQ4zAxiqA@HIDDEN>
Message-ID: <CADzm6z+p5eJtOFN7oMg9jFbOW-pkYqPtKgbNH+YCyFQ4zAxiqA@HIDDEN>
Subject: Re: bug#32042: 26.1; python.el with ipython prompt leads to
 superfluous interactive shell output
To: "gnu.emacs.bug@HIDDEN" <gnu.emacs.bug@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000a892dc0570ac62f6"
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, ,
 definitions=2018-07-10_08:, , signatures=0
X-Proofpoint-Spam-Details: rule=quarantine_notspam policy=quarantine score=0
 suspectscore=2
 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0
 mlxlogscore=908 adultscore=0 classifier=spam adjust=0 reason=mlx
 scancount=1 engine=8.0.1-1806210000 definitions=main-1807100234
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 32042
Cc: "32042 <at> debbugs.gnu.org" <32042 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--000000000000a892dc0570ac62f6
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thanks!

 It looks like it's the anaconda readline:

```
Python 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:07:29)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
>>> import readline; print(readline.__doc__); print(readline.__file__)
Importing this module enables command line editing using GNU readline.
/usr/local/anaconda3/lib/python3.6/site-packages/
readline.cpython-36m-darwin.so
```

I tried using gnureadline too but get the same broken output.

```
>>> import readline
>>> print(readline.__doc__); print(readline.__file__)
Importing this module enables command line editing using GNU readline.
/usr/local/anaconda3/lib/python3.6/site-packages/readline.py
>>> cat /usr/local/anaconda3/lib/python3.6/site-packages/readline.py
from gnureadline import *
from gnureadline import __doc__
```

On Monday, July 9, 2018, Noam Postavsky <npostavs@HIDDEN> wrote:

> On 9 July 2018 at 08:59, Jaan Altosaar <altosaar@HIDDEN> wrote:
> > My bad! Reply alling to keep 32042 <at> debbugs.gnu.org in cc. Hope this
> works=E2=80=94
>
> > Still getting the same broken output.
> >
> > Any other ideas?
>
> Can you show the result of the python expressions at the bottom of
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D32042#19
>
>
>
>

--000000000000a892dc0570ac62f6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div><br></div><div>Thanks!</div><div><br></div><div>=C2=A0It looks like it=
&#39;s the anaconda readline:</div><div><br></div><div>```</div><div>Python=
 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:07:29)</div><di=
v>Type &#39;copyright&#39;, &#39;credits&#39; or &#39;license&#39; for more=
 information</div><div>IPython 6.4.0 -- An enhanced Interactive Python. Typ=
e &#39;?&#39; for help.</div><div>&gt;&gt;&gt; import readline; print(readl=
ine.__doc__); print(readline.__file__)</div><div>Importing this module enab=
les command line editing using GNU readline.</div><div>/usr/local/anaconda3=
/lib/python3.6/site-packages/<a href=3D"http://readline.cpython-36m-darwin.=
so">readline.cpython-36m-darwin.so</a></div><div>```</div><div><br></div><d=
iv>I tried using gnureadline too but get the same broken output.</div><div>=
<br></div><div>```</div><div>&gt;&gt;&gt; import readline</div><div>&gt;&gt=
;&gt; print(readline.__doc__); print(readline.__file__)</div><div>Importing=
 this module enables command line editing using GNU readline.</div><div>/us=
r/local/anaconda3/lib/python3.6/site-packages/readline.py</div><div>&gt;&gt=
;&gt; cat /usr/local/anaconda3/lib/python3.6/site-packages/readline.py</div=
><div>from gnureadline import *</div><div>from gnureadline import __doc__</=
div><div>```</div><br>On Monday, July 9, 2018, Noam Postavsky &lt;<a href=
=3D"mailto:npostavs@HIDDEN">npostavs@HIDDEN</a>&gt; wrote:<br><blockq=
uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex">On 9 July 2018 at 08:59, Jaan Altosaar &lt;<a href=
=3D"mailto:altosaar@HIDDEN">altosaar@HIDDEN</a>&gt; wrote:<br=
>
&gt; My bad! Reply alling to keep <a href=3D"mailto:32042 <at> debbugs.gnu.org">=
32042 <at> debbugs.gnu.org</a> in cc. Hope this works=E2=80=94<br>
<br>
&gt; Still getting the same broken output.<br>
&gt;<br>
&gt; Any other ideas?<br>
<br>
Can you show the result of the python expressions at the bottom of<br>
<a href=3D"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D32042#19" target=
=3D"_blank">https://debbugs.gnu.org/cgi/<wbr>bugreport.cgi?bug=3D32042#19</=
a><br>
<br>
<br>
<br>
</blockquote>

--000000000000a892dc0570ac62f6--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32042; Package emacs. Full text available.

Message received at 32042 <at> debbugs.gnu.org:


Received: (at 32042) by debbugs.gnu.org; 9 Jul 2018 19:55:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 09 15:55:55 2018
Received: from localhost ([127.0.0.1]:52784 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fccGJ-0002Wa-A3
	for submit <at> debbugs.gnu.org; Mon, 09 Jul 2018 15:55:55 -0400
Received: from mail-oi0-f52.google.com ([209.85.218.52]:33615)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1fccGH-0002WK-EE
 for 32042 <at> debbugs.gnu.org; Mon, 09 Jul 2018 15:55:53 -0400
Received: by mail-oi0-f52.google.com with SMTP id c6-v6so38234167oiy.0
 for <32042 <at> debbugs.gnu.org>; Mon, 09 Jul 2018 12:55:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:in-reply-to:references:from:date:message-id:subject:to
 :cc:content-transfer-encoding;
 bh=GG3BYKtCE8hDl/94IzhGrUIMz7bV1NMQfzEdNxUOing=;
 b=GWFHN5tvMs9HDw2eze7bttELCzTKmE0iRxel1tTTYUWic1ESIoSPt8BnhE9/pKUX8X
 PQ2t6f4U6BzzOSBVkx86I9r/nFPe0e3dTl+3Lmm5G+Yit3b92hL4+6L8HKx+/QLcIFtc
 4UBf8Q09EonwkRK2tKjN6RmXho2ACkhy2KTPRswrxCok2zoFNHLptpDQWO6YK64lrn2C
 XN1rpdV67YPGqjn+w+kC8L2gFGnumKCGYX2f5oLzwH32vpIls+OIDVBT/Ynt/dlTmQnB
 GePjqoVru6Vh2h+Kg/4j+RYx+mpJMTh+y6nmDK5S3XqXX+s0+0oXm323XeAJUcUtqyWY
 7nMg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:in-reply-to:references:from:date
 :message-id:subject:to:cc:content-transfer-encoding;
 bh=GG3BYKtCE8hDl/94IzhGrUIMz7bV1NMQfzEdNxUOing=;
 b=qe89+wkJd73A5TJiaiCCOrt1Ml0dIDxMPP7LnwtmZ3hNh4AoTk7EUJaITZeIyTK+dh
 c93d8qTvIaW0H3fllZ2r381+Wslbc3uAITAfMDq9JvPADxmiy6N32WD0aYqTZTyaYvLh
 jbcQBihSpDUPMeXSwuG9KPqV2pvJKNYo+z+exNmhsclQUYvop3xSm2A7EsAcFO+b+2F3
 D613A2aFp5e48PChzWOMF54U2xD80rr/c2bkZ1/F+ytOAPTHLU6F28aQpjSzDARQQX58
 3HPScI5Sb5D7S6OjIhdJdYX/q0fghrlU5OQ/T+QGySKm8ZN29ufNeEAtyt0zpSY0XeZo
 517w==
X-Gm-Message-State: APt69E0V4c7pM/qoHiHJEKnBH27M1mQRco0LHX6/bOygJhJ3Pe61gqOk
 b9qgckk0/Dmr6nDaTOKzKHlHel0+p5dGYs0w1LI=
X-Google-Smtp-Source: AAOMgpfN48r3NWq36fRwJtTnRRvMCqzo/N1RH8UOWt7eDiqZLFfvlB4X2uc3G/e7NQMvf4sXkbU3XVTjvo09/hKEW6I=
X-Received: by 2002:aca:eb0d:: with SMTP id
 j13-v6mr26109202oih.304.1531166147599; 
 Mon, 09 Jul 2018 12:55:47 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a4a:3b8d:0:0:0:0:0 with HTTP;
 Mon, 9 Jul 2018 12:55:47 -0700 (PDT)
In-Reply-To: <CADzm6zLLm+0m4rnrL152jmiKkC_ocK9vsdJ2DNQuAvEm4d4b-g@HIDDEN>
References: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN>
 <87zhz9l6p9.fsf@HIDDEN>
 <CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@HIDDEN>
 <87va9xkuyu.fsf@HIDDEN>
 <CADzm6zLLm+0m4rnrL152jmiKkC_ocK9vsdJ2DNQuAvEm4d4b-g@HIDDEN>
From: Noam Postavsky <npostavs@HIDDEN>
Date: Mon, 9 Jul 2018 15:55:47 -0400
Message-ID: <CAM-tV--rJCvoyDBfrqBrKTgM_6nFdAsy9GytbWbXjMSjdj=t4w@HIDDEN>
Subject: Re: bug#32042: 26.1; python.el with ipython prompt leads to
 superfluous interactive shell output
To: Jaan Altosaar <altosaar@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 32042
Cc: "32042 <at> debbugs.gnu.org" <32042 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 9 July 2018 at 08:59, Jaan Altosaar <altosaar@HIDDEN> wrote:
> My bad! Reply alling to keep 32042 <at> debbugs.gnu.org in cc. Hope this works=
=E2=80=94

> Still getting the same broken output.
>
> Any other ideas?

Can you show the result of the python expressions at the bottom of
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D32042#19




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32042; Package emacs. Full text available.

Message received at 32042 <at> debbugs.gnu.org:


Received: (at 32042) by debbugs.gnu.org; 9 Jul 2018 12:59:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 09 08:59:31 2018
Received: from localhost ([127.0.0.1]:51823 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fcVlH-0003RO-5q
	for submit <at> debbugs.gnu.org; Mon, 09 Jul 2018 08:59:31 -0400
Received: from ppa01.princeton.edu ([128.112.128.213]:50478 helo=Princeton.EDU)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <altosaar@HIDDEN>) id 1fcVlF-0003RC-Q7
 for 32042 <at> debbugs.gnu.org; Mon, 09 Jul 2018 08:59:26 -0400
Received: from csgsmtp203l.Princeton.EDU (csgsmtp203l.Princeton.EDU
 [140.180.223.156])
 by ppa01.princeton.edu (8.16.0.21/8.16.0.21) with ESMTPS id w69CxJ0F029728
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <32042 <at> debbugs.gnu.org>; Mon, 9 Jul 2018 08:59:19 -0400
Received: from mail-it0-f41.google.com (mail-it0-f41.google.com
 [209.85.214.41]) (authenticated authid=altosaar bits=0)
 by csgsmtp203l.Princeton.EDU (8.14.4/8.12.9) with ESMTP id w69CxErB002492
 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT)
 for <32042 <at> debbugs.gnu.org>; Mon, 9 Jul 2018 08:59:19 -0400
Received: by mail-it0-f41.google.com with SMTP id p4-v6so25222918itf.2
 for <32042 <at> debbugs.gnu.org>; Mon, 09 Jul 2018 05:59:19 -0700 (PDT)
X-Gm-Message-State: APt69E3Z3pf2tEKcLZmoz3SzIVkR2wUCA8F1DWdcxVlh+FWx43rzhG7n
 HXqNfAA1/xfEErI+tBHMBVrY6nxyFcaTJ42E5KU=
X-Google-Smtp-Source: AAOMgpcjRbb5LAJCRGQRF9UKa9knnbLiALPInvTooFo00+2wxm8VEQTULQ3NKAvcVWCmo1YG/6yJN8pKWMlqqL+jPRY=
X-Received: by 2002:a02:503:: with SMTP id e3-v6mr17619116jad.29.1531141154285; 
 Mon, 09 Jul 2018 05:59:14 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a6b:2301:0:0:0:0:0 with HTTP;
 Mon, 9 Jul 2018 05:59:13 -0700 (PDT)
In-Reply-To: <87va9xkuyu.fsf@HIDDEN>
References: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN>
 <87zhz9l6p9.fsf@HIDDEN>
 <CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@HIDDEN>
 <87va9xkuyu.fsf@HIDDEN>
From: Jaan Altosaar <altosaar@HIDDEN>
Date: Mon, 9 Jul 2018 08:59:13 -0400
X-Gmail-Original-Message-ID: <CADzm6zLLm+0m4rnrL152jmiKkC_ocK9vsdJ2DNQuAvEm4d4b-g@HIDDEN>
Message-ID: <CADzm6zLLm+0m4rnrL152jmiKkC_ocK9vsdJ2DNQuAvEm4d4b-g@HIDDEN>
Subject: Re: bug#32042: 26.1; python.el with ipython prompt leads to
 superfluous interactive shell output
To: Noam Postavsky <npostavs@HIDDEN>
Content-Type: multipart/alternative; boundary="0000000000009a315d057090943d"
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, ,
 definitions=2018-07-09_06:, , signatures=0
X-Proofpoint-Spam-Details: rule=quarantine_notspam policy=quarantine score=0
 suspectscore=2
 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0
 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx
 scancount=1 engine=8.0.1-1806210000 definitions=main-1807090149
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 32042
Cc: "32042 <at> debbugs.gnu.org" <32042 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--0000000000009a315d057090943d
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

My bad! Reply alling to keep 32042 <at> debbugs.gnu.org in cc. Hope this works=
=E2=80=94

There was no change; I still see the broken output in the original post...

```File "<ipython-input-1-57ce0cd600e5>", line 1, in <module>
    import codecs, os;__pyfile =3D
codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh'''=
,
encoding=3D'''utf-8''')
```

I tried:

Disabling system integrity protection (booting into OS X High Sierra
recovery mode and running `csrutil disable`), then

```
cd
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-=
dynload
sudo mv readline.so readline.so.bak
```

and the same for the anaconda readline:

```
cd /usr/local/anaconda3/lib/python3.6/lib-dynload
mv readline.cpython-36m-darwin.so readline.cpython-36m-darwin.so.bak
```

And installing gnureadline.

Still getting the same broken output.

Any other ideas?

On Monday, July 2, 2018, Noam Postavsky <npostavs@HIDDEN> wrote:

> Jaan Altosaar <altosaar@HIDDEN> writes:
>
> > Thanks!
> >
> > I installed gnureadline. I could not rename the readline.so file as the
> > file moved to the /System/Library path in Mac High Sierra.
> >
> > FWIW I am not using the system python, but Anaconda 3 python (ipython
> > 6.4.0).
> >
> > Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 26 2018, 08:42:37=
).
> >
> > Is there anything else I should try?
>
> You mean there was no change?  Perhaps instead of the /System/Library
> path you need to find where the libedit readline is installed for
> Anaconda.  Although I'm not sure where that would be.
>
>

--0000000000009a315d057090943d
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

My bad! Reply alling to keep <a href=3D"mailto:32042 <at> debbugs.gnu.org">32042=
@debbugs.gnu.org</a> in cc. Hope this works=E2=80=94<div><br></div><div><di=
v>There was no change; I still see the broken output in the original post..=
.=C2=A0</div><div><br></div><div>```File &quot;&lt;ipython-input-1-57ce0cd6=
00e5&gt;&quot;, line 1, in &lt;module&gt;=C2=A0</div><div>=C2=A0 =C2=A0 imp=
ort codecs, os;__pyfile =3D codecs.open(&#39;&#39;&#39;/var/folders/qr/s_h2=
rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh&#39;&#39;&#39;, encoding=3D&#39;&#39;=
&#39;utf-8&#39;&#39;&#39;)=C2=A0</div><div>```=C2=A0</div><div><br></div><d=
iv>I tried:=C2=A0</div><div><br></div><div>Disabling system integrity prote=
ction (booting into OS X High Sierra recovery mode and running `csrutil dis=
able`), then=C2=A0</div><div><br></div><div>```=C2=A0</div><div>cd /System/=
Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload=
=C2=A0</div><div>sudo mv readline.so readline.so.bak=C2=A0</div><div>```=C2=
=A0</div><div><br></div><div>and the same for the anaconda readline:=C2=A0<=
/div><div><br></div><div>```=C2=A0</div><div>cd /usr/local/anaconda3/lib/py=
thon3.6/lib-dynload=C2=A0</div><div>mv <a href=3D"http://readline.cpython-3=
6m-darwin.so">readline.cpython-36m-darwin.so</a> readline.cpython-36m-darwi=
n.so.bak=C2=A0</div><div>```=C2=A0</div><div><br></div><div>And installing =
gnureadline.=C2=A0</div><div><br></div><div>Still getting the same broken o=
utput.=C2=A0</div><div><br></div><div>Any other ideas?=C2=A0</div><br>On Mo=
nday, July 2, 2018, Noam Postavsky &lt;<a href=3D"mailto:npostavs@HIDDEN=
">npostavs@HIDDEN</a>&gt; wrote:<br><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jaan =
Altosaar &lt;<a href=3D"mailto:altosaar@HIDDEN">altosaar@HIDDEN=
du</a>&gt; writes:<br>
<br>
&gt; Thanks!<br>
&gt;<br>
&gt; I installed gnureadline. I could not rename the readline.so file as th=
e<br>
&gt; file moved to the /System/Library path in Mac High Sierra.<br>
&gt;<br>
&gt; FWIW I am not using the system python, but Anaconda 3 python (ipython<=
br>
&gt; 6.4.0).<br>
&gt;<br>
&gt; Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 26 2018, 08:42:3=
7).<br>
&gt;<br>
&gt; Is there anything else I should try?<br>
<br>
You mean there was no change?=C2=A0 Perhaps instead of the /System/Library<=
br>
path you need to find where the libedit readline is installed for<br>
Anaconda.=C2=A0 Although I&#39;m not sure where that would be.<br>
<br>
</blockquote></div>

--0000000000009a315d057090943d--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32042; Package emacs. Full text available.

Message received at 32042 <at> debbugs.gnu.org:


Received: (at 32042) by debbugs.gnu.org; 7 Jul 2018 16:42:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 07 12:42:40 2018
Received: from localhost ([127.0.0.1]:50354 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fbqIB-0000QA-R3
	for submit <at> debbugs.gnu.org; Sat, 07 Jul 2018 12:42:39 -0400
Received: from eggs.gnu.org ([208.118.235.92]:46578)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rgm@HIDDEN>) id 1fbqI9-0000Py-RR
 for 32042 <at> debbugs.gnu.org; Sat, 07 Jul 2018 12:42:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <rgm@HIDDEN>) id 1fbqI4-0006TL-36
 for 32042 <at> debbugs.gnu.org; Sat, 07 Jul 2018 12:42:32 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled
 version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55025)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <rgm@HIDDEN>)
 id 1fbqI2-0006Sj-SL; Sat, 07 Jul 2018 12:42:30 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.82)
 (envelope-from <rgm@HIDDEN>)
 id 1fbqI1-0006h6-9N; Sat, 07 Jul 2018 12:42:29 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Noam Postavsky <npostavs@HIDDEN>
Subject: Re: bug#32042: 26.1;
 python.el with ipython prompt leads to superfluous interactive shell
 output
References: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN>
 <8736wvds2a.fsf@HIDDEN>
X-Spook: Iran Nuclear threat illuminati pipeline Brush fire FSF
X-Ran: sOP]lHrs5l@w3ewq]N27X&nOd:mZ]*eCh>R`eZd?VM5T#w2A=WA7Uzl>{~>+zstL7[hL`m
X-Hue: cyan
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Sat, 07 Jul 2018 12:42:28 -0400
In-Reply-To: <8736wvds2a.fsf@HIDDEN> (Noam Postavsky's message of "Sat, 07
 Jul 2018 10:43:57 -0400")
Message-ID: <t94lhb9evf.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 32042
Cc: 32042 <at> debbugs.gnu.org, jaan.altosaar@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -6.0 (------)

Noam Postavsky wrote:

> [your message doesn't seem to show up on the bug thread, please use

It's because he posted via the newsgroup (I wish it would go away), not mail.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32042; Package emacs. Full text available.

Message received at 32042 <at> debbugs.gnu.org:


Received: (at 32042) by debbugs.gnu.org; 7 Jul 2018 14:44:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 07 10:44:06 2018
Received: from localhost ([127.0.0.1]:50248 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fboRS-0005tH-MI
	for submit <at> debbugs.gnu.org; Sat, 07 Jul 2018 10:44:06 -0400
Received: from mail-it0-f44.google.com ([209.85.214.44]:35001)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1fboRQ-0005sh-TT
 for 32042 <at> debbugs.gnu.org; Sat, 07 Jul 2018 10:44:05 -0400
Received: by mail-it0-f44.google.com with SMTP id l16-v6so21030701ita.0
 for <32042 <at> debbugs.gnu.org>; Sat, 07 Jul 2018 07:44:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:date:message-id:mime-version;
 bh=JMjfyd6pt6fjKP8Sl/SBmb2xdTtq6wXBV5zlVhWHVxg=;
 b=gp+STY+wKozgfbVQPlERuGWtLXalPgd4scP8+or/YJvHZ0/jlAf2rbZ7KjQ7zfLzf+
 3AuXaz4HBmHrNpi4Dltm3X2/YkvZAFUew2n6mO+gNIluS/0Ym+yDMVzeOLq0GjQN281u
 v4bbICS3dZZ4T7uQXYnM29HHPY2fafKxdyJ39F+Hj5x/3kbsqMuti+pvB7vhAfb858So
 JQ3PgMvtnlH8+c0a/lQUVxkMrJGmu1sVQjuW+OgeX2w7s0wbTF/4jkSJjBnz1/7GCWUM
 WPZmgpuRza4ZaAICQV8YVieTRZGiWHrc2kAerYBuQjwQjHF3uiclTSaNFHihned3EQig
 HZ4w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version;
 bh=JMjfyd6pt6fjKP8Sl/SBmb2xdTtq6wXBV5zlVhWHVxg=;
 b=T4i9Ao5PsK1VrROzZfDqK4M4u9of7AnPlnXfGOQkX/N1d6oTQtQiwM1dhG/9ogIm28
 3zDXUq4rmy+J14fy/F6blQe2YUjZBAMPEQ86uh+21w/BfeB0xA8zme3igSF7+B82n1FY
 sH/uj7zQbAMkCUoj+taJR82U3/64LfuRdfvknoE+mAZVf27/FIxqykhCZt191+sgUTP7
 bnacvKeNbnMOXtj92vKhvflJ+7KXdk807qN0Xa3yclmEuxKsAQfzjDl2t+DbYGJ4ud2+
 cbvew7CCz+02vC9zjJpvwnPAhyA1uC8eInk/I0ohA2eg+nBS1uM++6sfo6B8lAx02Vbc
 peOQ==
X-Gm-Message-State: APt69E2Ejpy5QM4JWQgLc779IpX9UOYERrihsyIZaUGyLhYi26YAH9lf
 YESO9KIkP9LoJ2VigtxY82A=
X-Google-Smtp-Source: AAOMgpemA6YF3o3KsrkN5jFHOwOGTRX2b8QBbeoK+cWubqYVaX6FMTaoWeeVGxCGYZIBDvaFzNt7VQ==
X-Received: by 2002:a02:9d03:: with SMTP id
 n3-v6mr7974209jak.113.1530974639285; 
 Sat, 07 Jul 2018 07:43:59 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 134-v6sm5757544itw.23.2018.07.07.07.43.58
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sat, 07 Jul 2018 07:43:58 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: 32042 <at> debbugs.gnu.org
Subject: Re: bug#32042: 26.1;
 python.el with ipython prompt leads to superfluous interactive shell
 output
Date: Sat, 07 Jul 2018 10:43:57 -0400
Message-ID: <8736wvds2a.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 32042
Cc: jaan.altosaar@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain

[your message doesn't seem to show up on the bug thread, please use
"Reply All" to keep 32042 <at> debbugs.gnu.org on Cc]


--=-=-=
Content-Type: message/rfc822
Content-Disposition: inline

Date: Fri, 6 Jul 2018 12:21:52 -0700 (PDT)
In-Reply-To: <mailman.2978.1530578768.1292.bug-gnu-emacs@HIDDEN>
References: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN> <87zhz9l6p9.fsf@HIDDEN> <CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@HIDDEN> <mailman.2978.1530578768.1292.bug-gnu-emacs@HIDDEN>
Message-ID: <291b6c7e-1e95-4ee1-bab7-4d8db52c0977@HIDDEN>
Subject: Re: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output
From: jaan.altosaar@HIDDEN
To: bug-gnu-emacs@HIDDEN
MIME-Version: 1.0
Content-Type: text/plain

There was no change; I still see the broken output in the original post...

```File "<ipython-input-1-57ce0cd600e5>", line 1, in <module>
    import codecs, os;__pyfile = codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh''', encoding='''utf-8''')
```

I tried:

Disabling system integrity protection (booting into OS X High Sierra recovery mode and running `csrutil disable`), then 

```
cd /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload 
sudo mv readline.so readline.so.bak
```

and the same for the anaconda readline:

```
cd /usr/local/anaconda3/lib/python3.6/lib-dynload
mv readline.cpython-36m-darwin.so readline.cpython-36m-darwin.so.bak
```

And installing gnureadline.

Still getting the same broken output.
forwarding to list
Any other ideas?

--=-=-=
Content-Type: text/plain



Try in a python shell:

    print (readline.__doc__)
    print (readline.__file__)

The first to confirm that libedit readline is still being loaded, the
second to hopefully give some kind of hint where it's coming from.

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32042; Package emacs. Full text available.

Message received at 32042 <at> debbugs.gnu.org:


Received: (at 32042) by debbugs.gnu.org; 3 Jul 2018 00:45:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 02 20:45:55 2018
Received: from localhost ([127.0.0.1]:44183 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fa9S7-0000UQ-6N
	for submit <at> debbugs.gnu.org; Mon, 02 Jul 2018 20:45:55 -0400
Received: from mail-it0-f53.google.com ([209.85.214.53]:39071)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1fa9S5-0000U7-KW
 for 32042 <at> debbugs.gnu.org; Mon, 02 Jul 2018 20:45:53 -0400
Received: by mail-it0-f53.google.com with SMTP id p185-v6so783275itp.4
 for <32042 <at> debbugs.gnu.org>; Mon, 02 Jul 2018 17:45:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=I8aWx9Id2ieK6VosAqu7XPhbRUr4ybTle2egCLvUPsE=;
 b=Jvv7c3DY+Hv664mj5O2XO6+VlQrgEkaVpg4x6tu0ZGDrhsC3lD9gLJD44mddZbOidR
 N+Gvf72aSWdhEWXRR4vZ60xBHsv2DJBJm5KeSAUKKtcZV0ymq9MW1+YwdM8VSUw0mC2t
 4HcFVNVGZwn9n4CGOk6L3/rwdHuySo17h9AddgGHGovGXsnNOKrPJsqBa3Q0FSsHUMN5
 50sf3ctTb2YfP6736EQawwEnGOoUfGYZp3fM4srjPf3H0ss8igO8Yw6N8UTWRHji/i5Y
 Dg8tkvLMab851cr64gHcdrigNSYtedDr4C1SLLJP9hbm28A9DOXsTKX0eUpGPRunOwf0
 6TeA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=I8aWx9Id2ieK6VosAqu7XPhbRUr4ybTle2egCLvUPsE=;
 b=O3JMdOyjwMy28cc8ThDBV2cfnuPF9ds5a1yrtidtv05ppodTIzNlv3aEQyFMWYT62x
 5hA8vmqArne5QPUyP6blKmEX51GkmFIfa0oNoHA738euYSi0aYw4IM3SxnXok2dwFZp/
 bzqJmXURGUhXP3UrgZ1Cg8QR9WCliHKCx28W0JHacIR43OUTSJ/Fjq6QmcpUAPe2HHNI
 mahtacB0HT0phT6qv39B1SAHP+svinrfvMfle0KTaWZDJDfXeuJS8Xp4mbviWfmC3+8R
 bdyG6K5Nkfyr8MOiOtLu3mFkAn82VeNKn0633sKsSsYy+8e3dmFTEmBtf82W5//zLGxI
 HNQQ==
X-Gm-Message-State: APt69E1Eud9T+7bGnxSaw9RGThfyqgbqQJNOhDmRM3vLnQ+/K2p0Id7x
 LRoyC0ywUiysb+NrzLMJ7ghQlg==
X-Google-Smtp-Source: AAOMgpezX+Un1SEZn/iS6U4G9UQC4xzZvmNH6tsMIXpu68N0tz/S0T5sHRRctSDarb9MMIntTGZlNA==
X-Received: by 2002:a24:8012:: with SMTP id
 g18-v6mr8276543itd.80.1530578747929; 
 Mon, 02 Jul 2018 17:45:47 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 g26-v6sm3748988iti.0.2018.07.02.17.45.46
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 02 Jul 2018 17:45:46 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Jaan Altosaar <altosaar@HIDDEN>
Subject: Re: bug#32042: 26.1;
 python.el with ipython prompt leads to superfluous interactive shell
 output
References: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN>
 <87zhz9l6p9.fsf@HIDDEN>
 <CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@HIDDEN>
Date: Mon, 02 Jul 2018 20:45:45 -0400
In-Reply-To: <CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@HIDDEN> (Jaan
 Altosaar's message of "Mon, 2 Jul 2018 17:18:09 -0400")
Message-ID: <87va9xkuyu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 32042
Cc: "32042 <at> debbugs.gnu.org" <32042 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Jaan Altosaar <altosaar@HIDDEN> writes:

> Thanks!
>
> I installed gnureadline. I could not rename the readline.so file as the
> file moved to the /System/Library path in Mac High Sierra.
>
> FWIW I am not using the system python, but Anaconda 3 python (ipython
> 6.4.0).
>
> Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 26 2018, 08:42:37).
>
> Is there anything else I should try?

You mean there was no change?  Perhaps instead of the /System/Library
path you need to find where the libedit readline is installed for
Anaconda.  Although I'm not sure where that would be.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32042; Package emacs. Full text available.

Message received at 32042 <at> debbugs.gnu.org:


Received: (at 32042) by debbugs.gnu.org; 2 Jul 2018 21:18:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 02 17:18:25 2018
Received: from localhost ([127.0.0.1]:43986 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fa6DJ-0001q5-6Z
	for submit <at> debbugs.gnu.org; Mon, 02 Jul 2018 17:18:25 -0400
Received: from ppa01.princeton.edu ([128.112.128.213]:40742 helo=Princeton.EDU)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <altosaar@HIDDEN>) id 1fa6DF-0001pq-Rg
 for 32042 <at> debbugs.gnu.org; Mon, 02 Jul 2018 17:18:22 -0400
Received: from csgsmtp202l.Princeton.EDU (csgsmtp202l.Princeton.EDU
 [140.180.223.155])
 by ppa01.princeton.edu (8.16.0.21/8.16.0.21) with ESMTPS id w62LIF7G001940
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <32042 <at> debbugs.gnu.org>; Mon, 2 Jul 2018 17:18:15 -0400
Received: from mail-it0-f42.google.com (mail-it0-f42.google.com
 [209.85.214.42]) (authenticated authid=altosaar bits=0)
 by csgsmtp202l.Princeton.EDU (8.14.4/8.12.9) with ESMTP id w62LIApw029388
 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT)
 for <32042 <at> debbugs.gnu.org>; Mon, 2 Jul 2018 17:18:15 -0400
Received: by mail-it0-f42.google.com with SMTP id v83-v6so265081itc.3
 for <32042 <at> debbugs.gnu.org>; Mon, 02 Jul 2018 14:18:15 -0700 (PDT)
X-Gm-Message-State: APt69E3yIOKgjaHXuxl1+Enp7jClpQEpCXGhCImqBnIiwEbVBE7dFlkt
 9TCODnnJAg4W6Yq7iwcyCXHCIZ5F/EPAVYu2okw=
X-Google-Smtp-Source: AAOMgpdWDowGPgvb8olZkvN4BpNtxWKxitgNnx5NnGVxWL9yLz3Nk/k7Fx9LpWGy3vHfembp+Sllfau0qct5KzSLBvU=
X-Received: by 2002:a24:cf57:: with SMTP id
 y84-v6mr7424448itf.98.1530566290152; 
 Mon, 02 Jul 2018 14:18:10 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a6b:b5c9:0:0:0:0:0 with HTTP;
 Mon, 2 Jul 2018 14:18:09 -0700 (PDT)
In-Reply-To: <87zhz9l6p9.fsf@HIDDEN>
References: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN>
 <87zhz9l6p9.fsf@HIDDEN>
From: Jaan Altosaar <altosaar@HIDDEN>
Date: Mon, 2 Jul 2018 17:18:09 -0400
X-Gmail-Original-Message-ID: <CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@HIDDEN>
Message-ID: <CADzm6z+wrAzxLci3Z1AYwZbTPN13TC5BYjURS3B-yc4vTqGvyA@HIDDEN>
Subject: Re: bug#32042: 26.1; python.el with ipython prompt leads to
 superfluous interactive shell output
To: Noam Postavsky <npostavs@HIDDEN>
Content-Type: multipart/alternative; boundary="00000000000007a27d05700abc52"
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, ,
 definitions=2018-07-02_06:, , signatures=0
X-Proofpoint-Spam-Details: rule=quarantine_notspam policy=quarantine score=0
 suspectscore=2
 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0
 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx
 scancount=1 engine=8.0.1-1806210000 definitions=main-1807020237
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: 32042
Cc: "32042 <at> debbugs.gnu.org" <32042 <at> debbugs.gnu.org>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

--00000000000007a27d05700abc52
Content-Type: text/plain; charset="UTF-8"

Thanks!

I installed gnureadline. I could not rename the readline.so file as the
file moved to the /System/Library path in Mac High Sierra.

FWIW I am not using the system python, but Anaconda 3 python (ipython
6.4.0).

Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 26 2018, 08:42:37).

Is there anything else I should try?

On Monday, July 2, 2018, Noam Postavsky <npostavs@HIDDEN> wrote:

> merge 32042 25753
> quit
>
> Jaan Altosaar <altosaar@HIDDEN> writes:
>
> >   File "<ipython-input-1-57ce0cd600e5>", line 1, in <module>
> >     import codecs, os;__pyfile =
> > codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000g
> n/T/pyLbk6Vh''',
> > encoding='''utf-8''');__code =
> > __pyfile.read().encode('''utf-8''');__pyfile.close();os.remo
> ve('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/
> pyLbk6Vh''');exec(compile(__code,
> > '''/Users/jaan/tmp/test.py''', 'exec'));
>
> > Is there any way to clean up the output, especially the parts involving
> > `codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000
> gn/T/pyLbk6Vh'''`?
>
> Try installing gnureadline, as described in etc/PROBLEMS:
>
>     *** In Inferior Python mode, input is echoed and native completion
> doesn't work.
>     <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25753>
>
>     This happens when python uses a libedit based readline module, which
>     is the default on macOS.  This can be worked around by installing a
>     GNU readline based module instead, for example, using setuptools
>
>         sudo easy_install gnureadline
>
>     And then rename the system's readline so that it won't be loaded:
>
>         cd /Library/Frameworks/Python.framework/Versions/2.7/lib/python
> 2.7/lib-dynload
>         mv readline.so readline.so.bak
>
>     See <https://pypi.python.org/pypi/gnureadline> for more details on
>     installation.
>
>
>

--00000000000007a27d05700abc52
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thanks!<div><br></div><div>I installed gnureadline. I could not rename the =
readline.so file as the file moved to the /System/Library path in Mac High =
Sierra.</div><div><br></div><div>FWIW I am not using the system python, but=
 Anaconda 3 python (ipython 6.4.0).=C2=A0</div><div><br></div><div>Python 3=
.6.5 |Anaconda custom (64-bit)| (default, Apr 26 2018, 08:42:37).</div><div=
><br></div><div>Is there anything else I should try?<br><br>On Monday, July=
 2, 2018, Noam Postavsky &lt;<a href=3D"mailto:npostavs@HIDDEN" target=
=3D"_blank">npostavs@HIDDEN</a>&gt; wrote:<br><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:=
1ex">merge 32042 25753<br>
quit<br>
<br>
Jaan Altosaar &lt;<a href=3D"mailto:altosaar@HIDDEN" target=3D"_blan=
k">altosaar@HIDDEN</a>&gt; writes:<br>
<br>
&gt;=C2=A0 =C2=A0File &quot;&lt;ipython-input-1-57ce0cd600e5<wbr>&gt;&quot;=
, line 1, in &lt;module&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0import codecs, os;__pyfile =3D<br>
&gt; codecs.open(&#39;&#39;&#39;/var/folders/qr<wbr>/s_h2rhqj6kdg8qrj0zw2sc=
nw0000g<wbr>n/T/pyLbk6Vh&#39;&#39;&#39;,<br>
&gt; encoding=3D&#39;&#39;&#39;utf-8&#39;&#39;&#39;);__code =3D<br>
&gt; __pyfile.read().encode(&#39;&#39;&#39;utf-<wbr>8&#39;&#39;&#39;);__pyf=
ile.close();os.remo<wbr>ve(&#39;&#39;&#39;/var/folders/qr/s_h2rhqj<wbr>6kdg=
8qrj0zw2scnw0000gn/T/<wbr>pyLbk6Vh&#39;&#39;&#39;);exec(compile(__co<wbr>de=
,<br>
&gt; &#39;&#39;&#39;/Users/jaan/tmp/test.py&#39;&#39;&#39;, &#39;exec&#39;)=
);<br>
<br>
&gt; Is there any way to clean up the output, especially the parts involvin=
g<br>
&gt; `codecs.open(&#39;&#39;&#39;/var/folders/q<wbr>r/s_h2rhqj6kdg8qrj0zw2s=
cnw0000<wbr>gn/T/pyLbk6Vh&#39;&#39;&#39;`?<br>
<br>
Try installing gnureadline, as described in etc/PROBLEMS:<br>
<br>
=C2=A0 =C2=A0 *** In Inferior Python mode, input is echoed and native compl=
etion doesn&#39;t work.<br>
=C2=A0 =C2=A0 &lt;<a href=3D"https://debbugs.gnu.org/cgi/bugreport.cgi?bug=
=3D25753" target=3D"_blank">https://debbugs.gnu.org/cgi/b<wbr>ugreport.cgi?=
bug=3D25753</a>&gt;<br>
<br>
=C2=A0 =C2=A0 This happens when python uses a libedit based readline module=
, which<br>
=C2=A0 =C2=A0 is the default on macOS.=C2=A0 This can be worked around by i=
nstalling a<br>
=C2=A0 =C2=A0 GNU readline based module instead, for example, using setupto=
ols<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 sudo easy_install gnureadline<br>
<br>
=C2=A0 =C2=A0 And then rename the system&#39;s readline so that it won&#39;=
t be loaded:<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 cd /Library/Frameworks/Python.fra<wbr>mework/Ve=
rsions/2.7/lib/python<wbr>2.7/lib-dynload<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 mv readline.so readline.so.bak<br>
<br>
=C2=A0 =C2=A0 See &lt;<a href=3D"https://pypi.python.org/pypi/gnureadline" =
target=3D"_blank">https://pypi.python.org/pypi/<wbr>gnureadline</a>&gt; for=
 more details on<br>
=C2=A0 =C2=A0 installation.<br>
<br>
<br>
</blockquote></div>

--00000000000007a27d05700abc52--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32042; Package emacs. Full text available.
Merged 21431 22796 25753 26326 32042. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 32042 <at> debbugs.gnu.org:


Received: (at 32042) by debbugs.gnu.org; 2 Jul 2018 20:32:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 02 16:32:27 2018
Received: from localhost ([127.0.0.1]:43969 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fa5Up-0007F6-IP
	for submit <at> debbugs.gnu.org; Mon, 02 Jul 2018 16:32:27 -0400
Received: from mail-qt0-f170.google.com ([209.85.216.170]:37929)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1fa5Un-0007Ek-W3; Mon, 02 Jul 2018 16:32:26 -0400
Received: by mail-qt0-f170.google.com with SMTP id c5-v6so14954501qth.5;
 Mon, 02 Jul 2018 13:32:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=pkvITf7t0AzhlqkSJQKzTicoK/CiwBAeR7kWIjOlNRg=;
 b=rVEng0Mui0zaDuI4Z+x9lP9GKpoL7V60TiUE7zG/fUvFTmjuzxzx8io/ZsiMslZCBo
 A2Y/rIOMjiQTUvijaFpKo8C+DvAzrn9i5N4r8mzPRZo4GKA3tbZ2qrdu341rlDen7KSG
 xk1LE8WyGHrYB2dFrjribHRgd5g9AXLb7AlqTq/17l6kEyd7eadYJBpZhC4WFc+/ek5R
 ZwzgyC5iCJlI1XuCJugtPJ1siUabnaPuuhlaSjyE1wneEYoPif7Hlvxm5Dp3PIBQ7TRp
 VTC+E/s+Xbawm6r3A3SK+x7NCDMlkptA0atahCyEWtXXpG0ZuDOrZPQWlPk4Pq4xhaJy
 87vw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to
 :message-id:user-agent:mime-version;
 bh=pkvITf7t0AzhlqkSJQKzTicoK/CiwBAeR7kWIjOlNRg=;
 b=SZZopi9SDBx4HiSmgylAhD3w7WsqLr6wLKPNjjsZT4B1EFRmjvMVzQPKvy6oIau1k4
 6HD89EURYMF45lrTur9GgDi+0LG6Ayko+AYNG4yatq20LIA1CN4EWWC+miFJ7Tna0H8X
 +smlOlTfP1GgzDMD68in0Pcq/R3qWdFpDHYTzkg8pmKfTWw6CUdV3d6FsERUG+86APN0
 RWOaxZJTSlV5svMtchhVLN0mY/50S9NRG9JjFFZPGqNmf0HKoDFx92IAStuq4F6Xel+h
 01dkQAERGf74vf6EaaCtOLT1CQXUuaCU/cQyNAUvsJbQzEmpyv4iF0Lolcx88cXkxIGJ
 wtDA==
X-Gm-Message-State: APt69E346NYRfFzp4xpSeBJwRKZFnXQFdqqx4FOajL3MUzBB9HEDv2V3
 AkDWEgVQLsC86lZmdciSP2XwoQ==
X-Google-Smtp-Source: AAOMgpdwNte7xjkRGa42d9FlwLbNFeMhNLvNhlw/wWDZPJoBGLOFlR7o9upKBYJJ385slwwSH0AyQw==
X-Received: by 2002:ac8:2ee8:: with SMTP id
 i37-v6mr8999879qta.383.1530563540408; 
 Mon, 02 Jul 2018 13:32:20 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 g67-v6sm1891354qka.21.2018.07.02.13.32.19
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 02 Jul 2018 13:32:19 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Jaan Altosaar <altosaar@HIDDEN>
Subject: Re: bug#32042: 26.1;
 python.el with ipython prompt leads to superfluous interactive shell
 output
References: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN>
Date: Mon, 02 Jul 2018 16:32:18 -0400
In-Reply-To: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN> (Jaan
 Altosaar's message of "Mon, 2 Jul 2018 16:13:14 -0400")
Message-ID: <87zhz9l6p9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 32042
Cc: 32042 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

merge 32042 25753
quit

Jaan Altosaar <altosaar@HIDDEN> writes:

>   File "<ipython-input-1-57ce0cd600e5>", line 1, in <module>
>     import codecs, os;__pyfile =
> codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh''',
> encoding='''utf-8''');__code =
> __pyfile.read().encode('''utf-8''');__pyfile.close();os.remove('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh''');exec(compile(__code,
> '''/Users/jaan/tmp/test.py''', 'exec'));

> Is there any way to clean up the output, especially the parts involving
> `codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh'''`?

Try installing gnureadline, as described in etc/PROBLEMS:

    *** In Inferior Python mode, input is echoed and native completion doesn't work.
    <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25753>

    This happens when python uses a libedit based readline module, which
    is the default on macOS.  This can be worked around by installing a
    GNU readline based module instead, for example, using setuptools

        sudo easy_install gnureadline

    And then rename the system's readline so that it won't be loaded:

        cd /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
        mv readline.so readline.so.bak

    See <https://pypi.python.org/pypi/gnureadline> for more details on
    installation.






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#32042; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 Jul 2018 20:24:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 02 16:24:11 2018
Received: from localhost ([127.0.0.1]:43957 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fa5Mo-00071d-Iw
	for submit <at> debbugs.gnu.org; Mon, 02 Jul 2018 16:24:11 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35347)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <altosaar@HIDDEN>) id 1fa5Cc-0006lK-PG
 for submit <at> debbugs.gnu.org; Mon, 02 Jul 2018 16:13:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <altosaar@HIDDEN>) id 1fa5CV-0000qp-NO
 for submit <at> debbugs.gnu.org; Mon, 02 Jul 2018 16:13:33 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:58326)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <altosaar@HIDDEN>)
 id 1fa5CV-0000qg-Ij
 for submit <at> debbugs.gnu.org; Mon, 02 Jul 2018 16:13:31 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:54522)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <altosaar@HIDDEN>) id 1fa5CT-0002S7-82
 for bug-gnu-emacs@HIDDEN; Mon, 02 Jul 2018 16:13:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <altosaar@HIDDEN>) id 1fa5CO-0000oE-1A
 for bug-gnu-emacs@HIDDEN; Mon, 02 Jul 2018 16:13:29 -0400
Received: from ppa03.princeton.edu ([128.112.128.214]:57922 helo=Princeton.EDU)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <altosaar@HIDDEN>)
 id 1fa5CN-0000nx-RG
 for bug-gnu-emacs@HIDDEN; Mon, 02 Jul 2018 16:13:23 -0400
Received: from csgsmtp203l.Princeton.EDU (csgsmtp203l.Princeton.EDU
 [140.180.223.156])
 by ppa03.princeton.edu (8.16.0.21/8.16.0.21) with ESMTPS id w62KDMLw027607
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)
 for <bug-gnu-emacs@HIDDEN>; Mon, 2 Jul 2018 16:13:22 -0400
Received: from mail-it0-f48.google.com (mail-it0-f48.google.com
 [209.85.214.48]) (authenticated authid=altosaar bits=0)
 by csgsmtp203l.Princeton.EDU (8.14.4/8.12.9) with ESMTP id w62KDGnq032531
 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT)
 for <bug-gnu-emacs@HIDDEN>; Mon, 2 Jul 2018 16:13:22 -0400
Received: by mail-it0-f48.google.com with SMTP id p17-v6so46683itc.2
 for <bug-gnu-emacs@HIDDEN>; Mon, 02 Jul 2018 13:13:22 -0700 (PDT)
X-Gm-Message-State: APt69E0bAoaCw8SwhQMBK/9rKlGeUvBhokbFjBs9oTb35m6nHdKLgmoQ
 N6R/h9PFAe1w69qeOK9dhus3g1w57TQuDUq4xLc=
X-Google-Smtp-Source: AAOMgpfuBZVVB26yycLKELejF4FqDShhM3xE0js12JO1sCs3QfYMObvqpXSmmCt869Qkaw7SA2yJqoxq9bWYiocumOM=
X-Received: by 2002:a02:3d58:: with SMTP id
 n85-v6mr21158601jan.99.1530562396714; 
 Mon, 02 Jul 2018 13:13:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a6b:7416:0:0:0:0:0 with HTTP;
 Mon, 2 Jul 2018 13:13:14 -0700 (PDT)
From: Jaan Altosaar <altosaar@HIDDEN>
Date: Mon, 2 Jul 2018 16:13:14 -0400
X-Gmail-Original-Message-ID: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN>
Message-ID: <CADzm6z+f4xGAiQGD05HT6TbHGhLOUO0L0_DuRFUEvPojGtc7GA@HIDDEN>
Subject: 26.1; python.el with ipython prompt leads to superfluous interactive
 shell output
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary="000000000000f68564057009d3de"
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, ,
 definitions=2018-07-02_06:, , signatures=0
X-Proofpoint-Spam-Details: rule=quarantine_notspam policy=quarantine score=0
 suspectscore=3
 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0
 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx
 scancount=1 engine=8.0.1-1806210000 definitions=main-1807020225
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.4 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 02 Jul 2018 16:24:09 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.4 (-----)

--000000000000f68564057009d3de
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Here is how I'm starting emacs, with these contents of init.el:
```
(setq
 python-shell-interpreter "ipython"
 python-shell-interpreter-args "--simple-prompt --classic --nosep"
)
```
Then if I open a file `~/tmp/test.py` with the contents:

```
print('test printing')
print('test bug)
```

And run it using `M-x run-python` then `M-x python-shell-send-buffer`,
the output is quite messy:

```
Python 3.6.5 |Anaconda custom (64-bit)| (default, Apr 26 2018, 08:42:37)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.
>>> Traceback (most recent call last):

  File
"/usr/local/anaconda3/lib/python3.6/site-packages/IPython/core/interactives=
hell.py",
line 2963, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)

  File "<ipython-input-1-57ce0cd600e5>", line 1, in <module>
    import codecs, os;__pyfile =3D
codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh'''=
,
encoding=3D'''utf-8''');__code =3D
__pyfile.read().encode('''utf-8''');__pyfile.close();os.remove('''/var/fold=
ers/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh''');exec(compile(__code,
'''/Users/jaan/tmp/test.py''', 'exec'));

  File "/Users/jaan/tmp/test.py", line 2
    print('test bug)
                    ^
SyntaxError: EOL while scanning string literal
```

Is there any way to clean up the output, especially the parts involving
`codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh''=
'`?

Thanks so much! Emacs newbie here, may be missing something basic...


In GNU Emacs 26.1 (build 1, x86_64-apple-darwin17.5.0)
 of 2018-06-02 built on 172-16-42-187.DYNAPOOL.NYU.EDU
Recent messages:
Searching for =E2=80=98test.py=E2=80=99.... [2 times]
(New file)
Saving file /Users/jaan/tmp/test.py...
Wrote /Users/jaan/tmp/test.py
user-error: Start a Python process first with =E2=80=98M-x run-python=E2=80=
=99 or =E2=80=98C-c C-p=E2=80=99.
Shell native completion is disabled, using fallback
Sent: print('test printing')...
Mark set
Quit
user-error: Current buffer has no process
Quit
Configured using:
 'configure --disable-dependency-tracking --disable-silent-rules
 --enable-locallisppath=3D/usr/local/share/emacs/site-lisp
 --infodir=3D/usr/local/Cellar/emacs/26.1_1/share/info/emacs
 --prefix=3D/usr/local/Cellar/emacs/26.1_1 --with-gnutls --without-x
 --with-xml2 --without-dbus --with-imagemagick --with-rsvg --without-ns'

Configured features:
JPEG NOTIFY ACL GNUTLS LIBXML2 ZLIB THREADS LCMS2

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LC_CTYPE: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Inferior Python

Minor modes in effect:
  compilation-shell-minor-mode: t
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  helm-mode: t
  async-bytecomp-package-mode: t
  xclip-mode: t
  ido-everywhere: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  global-visual-line-mode: 1
  visual-line-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils ffap compile python tramp-sh tramp tramp-compat
tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time json
map comint regexp-opt ansi-color vc-git diff-mode image winner thingatpt
cl-extra help-mode helm-command helm-elisp helm-eval edebug helm-info
ring info tool-bar misearch multi-isearch term/xterm xterm time-date
elec-pair helm-mode helm-files helm-buffers helm-tags helm-locate
helm-grep helm-regexp format-spec helm-utils helm-help helm-types helm
easy-mmode helm-source eieio-compat helm-multi-match helm-lib
helm-config helm-easymenu async-bytecomp advice async xclip edmacro
kmacro solarized-theme solarized-definitions ido finder-inf package
easymenu epg-config url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt
gv bytecomp byte-compile cconv cl-loaddefs cl-lib mule-util tooltip
eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select mouse
jit-lock font-lock syntax facemenu font-core term/tty-colors frame
cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian
slovak czech european ethiopic indian cyrillic chinese composite
charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev
obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face
macroexp files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote kqueue
lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 405604 13728)
 (symbols 48 31824 1)
 (miscs 40 176 376)
 (strings 32 78802 1488)
 (string-bytes 1 2336041)
 (vectors 16 50728)
 (vector-slots 8 892846 8650)
 (floats 8 126 1059)
 (intervals 56 4765 66)
 (buffers 992 20))

--000000000000f68564057009d3de
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div>Here is how I&#39;m starting emacs, with these contents of init.el:</d=
iv><div>```</div><div>(setq</div><div>=C2=A0python-shell-interpreter &quot;=
ipython&quot;</div><div>=C2=A0python-shell-interpreter-args &quot;--simple-=
prompt --classic --nosep&quot;</div><div>)</div><div>```</div><div>Then if =
I open a file `~/tmp/test.py` with the contents:</div><div><br></div><div>`=
``</div><div>print(&#39;test printing&#39;)</div><div>print(&#39;test bug)<=
/div><div>```</div><div><br></div><div>And run it using `M-x run-python` th=
en `M-x python-shell-send-buffer`,</div><div>the output is quite messy:</di=
v><div><br></div><div>```</div><div>Python 3.6.5 |Anaconda custom (64-bit)|=
 (default, Apr 26 2018, 08:42:37)</div><div>Type &#39;copyright&#39;, &#39;=
credits&#39; or &#39;license&#39; for more information</div><div>IPython 6.=
4.0 -- An enhanced Interactive Python. Type &#39;?&#39; for help.</div><div=
>&gt;&gt;&gt; Traceback (most recent call last):</div><div><br></div><div>=
=C2=A0 File &quot;/usr/local/anaconda3/lib/python3.6/site-packages/IPython/=
core/interactiveshell.py&quot;, line 2963, in run_code</div><div>=C2=A0 =C2=
=A0 exec(code_obj, self.user_global_ns, self.user_ns)</div><div><br></div><=
div>=C2=A0 File &quot;&lt;ipython-input-1-57ce0cd600e5&gt;&quot;, line 1, i=
n &lt;module&gt;</div><div>=C2=A0 =C2=A0 import codecs, os;__pyfile =3D cod=
ecs.open(&#39;&#39;&#39;/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/py=
Lbk6Vh&#39;&#39;&#39;, encoding=3D&#39;&#39;&#39;utf-8&#39;&#39;&#39;);__co=
de =3D</div><div>__pyfile.read().encode(&#39;&#39;&#39;utf-8&#39;&#39;&#39;=
);__pyfile.close();os.remove(&#39;&#39;&#39;/var/folders/qr/s_h2rhqj6kdg8qr=
j0zw2scnw0000gn/T/pyLbk6Vh&#39;&#39;&#39;);exec(compile(__code, &#39;&#39;&=
#39;/Users/jaan/tmp/test.py&#39;&#39;&#39;, &#39;exec&#39;));</div><div><br=
></div><div>=C2=A0 File &quot;/Users/jaan/tmp/test.py&quot;, line 2</div><d=
iv>=C2=A0 =C2=A0 print(&#39;test bug)</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^</div><div>SyntaxError: EOL whi=
le scanning string literal</div><div>```</div><div><br></div><div>Is there =
any way to clean up the output, especially the parts involving</div><div>`c=
odecs.open(&#39;&#39;&#39;/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/=
pyLbk6Vh&#39;&#39;&#39;`?</div><div><br></div><div>Thanks so much! Emacs ne=
wbie here, may be missing something basic...</div><div><br></div><div><br><=
/div><div>In GNU Emacs 26.1 (build 1, x86_64-apple-darwin17.5.0)</div><div>=
=C2=A0of 2018-06-02 built on <a href=3D"http://172-16-42-187.DYNAPOOL.NYU.E=
DU">172-16-42-187.DYNAPOOL.NYU.EDU</a></div><div>Recent messages:</div><div=
>Searching for =E2=80=98test.py=E2=80=99.... [2 times]</div><div>(New file)=
</div><div>Saving file /Users/jaan/tmp/test.py...</div><div>Wrote /Users/ja=
an/tmp/test.py</div><div>user-error: Start a Python process first with =E2=
=80=98M-x run-python=E2=80=99 or =E2=80=98C-c C-p=E2=80=99.</div><div>Shell=
 native completion is disabled, using fallback</div><div>Sent: print(&#39;t=
est printing&#39;)...</div><div>Mark set</div><div>Quit</div><div>user-erro=
r: Current buffer has no process</div><div>Quit</div><div>Configured using:=
</div><div>=C2=A0&#39;configure --disable-dependency-tracking --disable-sil=
ent-rules</div><div>=C2=A0--enable-locallisppath=3D/usr/local/share/emacs/s=
ite-lisp</div><div>=C2=A0--infodir=3D/usr/local/Cellar/emacs/26.1_1/share/i=
nfo/emacs</div><div>=C2=A0--prefix=3D/usr/local/Cellar/emacs/26.1_1 --with-=
gnutls --without-x</div><div>=C2=A0--with-xml2 --without-dbus --with-imagem=
agick --with-rsvg --without-ns&#39;</div><div><br></div><div>Configured fea=
tures:</div><div>JPEG NOTIFY ACL GNUTLS LIBXML2 ZLIB THREADS LCMS2</div><di=
v><br></div><div>Important settings:</div><div>=C2=A0 value of $LC_ALL: en_=
US.UTF-8</div><div>=C2=A0 value of $LC_CTYPE: en_US.UTF-8</div><div>=C2=A0 =
value of $LANG: en_US.UTF-8</div><div>=C2=A0 locale-coding-system: utf-8-un=
ix</div><div><br></div><div>Major mode: Inferior Python</div><div><br></div=
><div>Minor modes in effect:</div><div>=C2=A0 compilation-shell-minor-mode:=
 t</div><div>=C2=A0 shell-dirtrack-mode: t</div><div>=C2=A0 diff-auto-refin=
e-mode: t</div><div>=C2=A0 helm-mode: t</div><div>=C2=A0 async-bytecomp-pac=
kage-mode: t</div><div>=C2=A0 xclip-mode: t</div><div>=C2=A0 ido-everywhere=
: t</div><div>=C2=A0 tooltip-mode: t</div><div>=C2=A0 global-eldoc-mode: t<=
/div><div>=C2=A0 electric-indent-mode: t</div><div>=C2=A0 file-name-shadow-=
mode: t</div><div>=C2=A0 global-font-lock-mode: t</div><div>=C2=A0 font-loc=
k-mode: t</div><div>=C2=A0 auto-composition-mode: t</div><div>=C2=A0 auto-e=
ncryption-mode: t</div><div>=C2=A0 auto-compression-mode: t</div><div>=C2=
=A0 line-number-mode: t</div><div>=C2=A0 global-visual-line-mode: 1</div><d=
iv>=C2=A0 visual-line-mode: t</div><div>=C2=A0 transient-mark-mode: t</div>=
<div><br></div><div>Load-path shadows:</div><div>None found.</div><div><br>=
</div><div>Features:</div><div>(shadow sort mail-extr emacsbug message rmc =
puny dired dired-loaddefs</div><div>rfc822 mml mml-sec epa derived epg gnus=
-util rmail rmail-loaddefs</div><div>mm-decode mm-bodies mm-encode mail-par=
se rfc2231 mailabbrev gmm-utils</div><div>mailheader sendmail rfc2047 rfc20=
45 ietf-drums mm-util mail-prsvr</div><div>mail-utils ffap compile python t=
ramp-sh tramp tramp-compat</div><div>tramp-loaddefs trampver ucs-normalize =
shell pcomplete parse-time json</div><div>map comint regexp-opt ansi-color =
vc-git diff-mode image winner thingatpt</div><div>cl-extra help-mode helm-c=
ommand helm-elisp helm-eval edebug helm-info</div><div>ring info tool-bar m=
isearch multi-isearch term/xterm xterm time-date</div><div>elec-pair helm-m=
ode helm-files helm-buffers helm-tags helm-locate</div><div>helm-grep helm-=
regexp format-spec helm-utils helm-help helm-types helm</div><div>easy-mmod=
e helm-source eieio-compat helm-multi-match helm-lib</div><div>helm-config =
helm-easymenu async-bytecomp advice async xclip edmacro</div><div>kmacro so=
larized-theme solarized-definitions ido finder-inf package</div><div>easyme=
nu epg-config url-handlers url-parse auth-source cl-seq eieio</div><div>eie=
io-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt</div><d=
iv>gv bytecomp byte-compile cconv cl-loaddefs cl-lib mule-util tooltip</div=
><div>eldoc electric uniquify ediff-hook vc-hooks lisp-float-type</div><div=
>tabulated-list replace newcomment text-mode elisp-mode lisp-mode</div><div=
>prog-mode register page menu-bar rfn-eshadow isearch timer select mouse</d=
iv><div>jit-lock font-lock syntax facemenu font-core term/tty-colors frame<=
/div><div>cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan =
thai</div><div>tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek r=
omanian</div><div>slovak czech european ethiopic indian cyrillic chinese co=
mposite</div><div>charscript charprop case-table epa-hook jka-cmpr-hook hel=
p simple abbrev</div><div>obarray minibuffer cl-preloaded nadvice loaddefs =
button faces cus-face</div><div>macroexp files text-properties overlay sha1=
 md5 base64 format env</div><div>code-pages mule custom widget hashtable-pr=
int-readable backquote kqueue</div><div>lcms2 multi-tty make-network-proces=
s emacs)</div><div><br></div><div>Memory information:</div><div>((conses 16=
 405604 13728)</div><div>=C2=A0(symbols 48 31824 1)</div><div>=C2=A0(miscs =
40 176 376)</div><div>=C2=A0(strings 32 78802 1488)</div><div>=C2=A0(string=
-bytes 1 2336041)</div><div>=C2=A0(vectors 16 50728)</div><div>=C2=A0(vecto=
r-slots 8 892846 8650)</div><div>=C2=A0(floats 8 126 1059)</div><div>=C2=A0=
(intervals 56 4765 66)</div><div>=C2=A0(buffers 992 20))</div><div><br></di=
v>

--000000000000f68564057009d3de--




Acknowledgement sent to Jaan Altosaar <altosaar@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#32042; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 11 Jul 2018 00:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.