From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jaan Altosaar Newsgroups: gmane.emacs.bugs Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Date: Tue, 10 Jul 2018 18:09:34 -0400 Message-ID: References: <87zhz9l6p9.fsf@gmail.com> <87va9xkuyu.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a892dc0570ac62f6" X-Trace: blaine.gmane.org 1531260489 10445 195.159.176.226 (10 Jul 2018 22:08:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2018 22:08:09 +0000 (UTC) Cc: "32042@debbugs.gnu.org" <32042@debbugs.gnu.org> To: "gnu.emacs.bug@googlegroups.com" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 11 00:08:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd0nf-0002Yl-Ro for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Jul 2018 00:08:00 +0200 Original-Received: from localhost ([::1]:49907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fd0pn-00024l-14 for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Jul 2018 18:10:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fd0pg-00024g-QH for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 18:10:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fd0pe-0006Aa-3g for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 18:10:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46510) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fd0pe-0006A2-0F for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 18:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fd0pd-0004wm-Ni for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 18:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jaan Altosaar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Jul 2018 22:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32042 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.153126058918993 (code B ref 32042); Tue, 10 Jul 2018 22:10:01 +0000 Original-Received: (at 32042) by debbugs.gnu.org; 10 Jul 2018 22:09:49 +0000 Original-Received: from localhost ([127.0.0.1]:54407 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd0pR-0004wH-2Y for submit@debbugs.gnu.org; Tue, 10 Jul 2018 18:09:49 -0400 Original-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 ) id 1fd0pO-0004w4-JX for 32042@debbugs.gnu.org; Tue, 10 Jul 2018 18:09:47 -0400 Original-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@debbugs.gnu.org>; Tue, 10 Jul 2018 18:09:41 -0400 Original-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@debbugs.gnu.org>; Tue, 10 Jul 2018 18:09:41 -0400 Original-Received: by mail-io0-f182.google.com with SMTP id q19-v6so21825469ioh.11 for <32042@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) Original-Received: by 2002:a6b:2301:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 15:09:34 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:148423 Archived-At: --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 wrote: > On 9 July 2018 at 08:59, Jaan Altosaar wrote: > > My bad! Reply alling to keep 32042@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

Thanks!

=C2=A0It 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. Typ= e '?' for help.
>>> import readline; print(readl= ine.__doc__); print(readline.__file__)
Importing this module enab= les 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.
/us= r/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@gmail.com> wrote:
On 9 July 2018 at 08:59, Jaan Altosaar <altosaar@princeton.edu> wrote: > My bad! Reply alling to keep = 32042@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--