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:14:42 -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="00000000000002abf70570ac7561" X-Trace: blaine.gmane.org 1531260789 29290 195.159.176.226 (10 Jul 2018 22:13:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2018 22:13:09 +0000 (UTC) To: 32042@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 11 00:13:05 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 1fd0sY-0007UA-RT for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Jul 2018 00:13:03 +0200 Original-Received: from localhost ([::1]:49924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fd0uf-00030F-MR for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Jul 2018 18:15:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fd0uZ-0002zj-5e for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 18:15:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fd0uW-0007cf-E7 for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 18:15:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46516) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fd0uW-0007cZ-9Z for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 18:15:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fd0uT-00054i-U5 for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 18:15:03 -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:15: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.153126089619482 (code B ref 32042); Tue, 10 Jul 2018 22:15:01 +0000 Original-Received: (at 32042) by debbugs.gnu.org; 10 Jul 2018 22:14:56 +0000 Original-Received: from localhost ([127.0.0.1]:54413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd0uN-000549-Pz for submit@debbugs.gnu.org; Tue, 10 Jul 2018 18:14:56 -0400 Original-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 ) id 1fd0uM-00053s-9y for 32042@debbugs.gnu.org; Tue, 10 Jul 2018 18:14:54 -0400 Original-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@debbugs.gnu.org>; Tue, 10 Jul 2018 18:14:48 -0400 Original-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@debbugs.gnu.org>; Tue, 10 Jul 2018 18:14:48 -0400 Original-Received: by mail-it0-f45.google.com with SMTP id d191-v6so16065396ite.1 for <32042@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) Original-Received: by 2002:a6b:2301:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 15:14:42 -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=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-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:148424 Archived-At: --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 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 > > > > --00000000000002abf70570ac7561 Content-Type: text/html; 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', = 9;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 to= o but get the same broken output.

```
&g= t;>> import readline
>>> print(readline.__doc__); = print(readline.__file__)
Importing this module enables command li= ne 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 <np= ostavs@gmail.com> wrote:
On 9 Jul= y 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



--00000000000002abf70570ac7561--