From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Resent-From: Jaan Altosaar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Jul 2018 20:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32042 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 32042@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.153056305127013 (code B ref -1); Mon, 02 Jul 2018 20:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jul 2018 20:24:11 +0000 Received: from localhost ([127.0.0.1]:43957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa5Mo-00071d-Iw for submit@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 ) id 1fa5Cc-0006lK-PG for submit@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 ) id 1fa5CV-0000qp-NO for submit@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 ) id 1fa5CV-0000qg-Ij for submit@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 ) id 1fa5CT-0002S7-82 for bug-gnu-emacs@gnu.org; Mon, 02 Jul 2018 16:13:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fa5CO-0000oE-1A for bug-gnu-emacs@gnu.org; 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 ) id 1fa5CN-0000nx-RG for bug-gnu-emacs@gnu.org; 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 ; 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 ; Mon, 2 Jul 2018 16:13:22 -0400 Received: by mail-it0-f48.google.com with SMTP id p17-v6so46683itc.2 for ; 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 Date: Mon, 2 Jul 2018 16:13:14 -0400 X-Gmail-Original-Message-ID: Message-ID: 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-Mailman-Approved-At: Mon, 02 Jul 2018 16:24:09 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 "", line 1, in 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
Here is how I'm starting emacs, with these contents of init.el:
```
(setq
=C2=A0python-shell-interpreter "= ipython"
=C2=A0python-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)<= /div>
```

And run it using `M-x run-python` th= en `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):

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

<= div>=C2=A0 File "<ipython-input-1-57ce0cd600e5>", line 1, i= n <module>
=C2=A0 =C2=A0 import codecs, os;__pyfile =3D cod= ecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2scnw0000gn/T/py= Lbk6Vh''', encoding=3D'''utf-8''');__co= de =3D
__pyfile.read().encode('''utf-8'''= );__pyfile.close();os.remove('''/var/folders/qr/s_h2rhqj6kdg8qr= j0zw2scnw0000gn/T/pyLbk6Vh''');exec(compile(__code, ''&= #39;/Users/jaan/tmp/test.py''', 'exec'));
=C2=A0 File "/Users/jaan/tmp/test.py", line 2
=C2=A0 =C2=A0 print('test bug)
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^
SyntaxError: EOL whi= le scanning string literal
```

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

Thanks so much! Emacs ne= wbie here, may be missing something basic...


<= /div>
In GNU Emacs 26.1 (build 1, x86_64-apple-darwin17.5.0)
= =C2=A0of 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/ja= an/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('t= est printing')...
Mark set
Quit
user-erro= r: Current buffer has no process
Quit
Configured using:=
=C2=A0'configure --disable-dependency-tracking --disable-sil= ent-rules
=C2=A0--enable-locallisppath=3D/usr/local/share/emacs/s= ite-lisp
=C2=A0--infodir=3D/usr/local/Cellar/emacs/26.1_1/share/i= nfo/emacs
=C2=A0--prefix=3D/usr/local/Cellar/emacs/26.1_1 --with-= gnutls --without-x
=C2=A0--with-xml2 --without-dbus --with-imagem= agick --with-rsvg --without-ns'

Configured fea= tures:
JPEG NOTIFY ACL GNUTLS LIBXML2 ZLIB THREADS LCMS2

Important settings:
=C2=A0 value of $LC_ALL: en_= US.UTF-8
=C2=A0 value of $LC_CTYPE: en_US.UTF-8
=C2=A0 = value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-un= ix

Major mode: Inferior Python

Minor modes in effect:
=C2=A0 compilation-shell-minor-mode:= t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 diff-auto-refin= e-mode: t
=C2=A0 helm-mode: t
=C2=A0 async-bytecomp-pac= kage-mode: t
=C2=A0 xclip-mode: t
=C2=A0 ido-everywhere= : t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t<= /div>
=C2=A0 electric-indent-mode: t
=C2=A0 file-name-shadow-= mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-loc= k-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-e= ncryption-mode: t
=C2=A0 auto-compression-mode: t
=C2= =A0 line-number-mode: t
=C2=A0 global-visual-line-mode: 1
=C2=A0 visual-line-mode: t
=C2=A0 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-par= se rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc20= 45 ietf-drums mm-util mail-prsvr
mail-utils ffap compile python t= ramp-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-c= ommand helm-elisp helm-eval edebug helm-info
ring info tool-bar m= isearch multi-isearch term/xterm xterm time-date
elec-pair helm-m= ode helm-files helm-buffers helm-tags helm-locate
helm-grep helm-= regexp format-spec helm-utils helm-help helm-types helm
easy-mmod= e helm-source eieio-compat helm-multi-match helm-lib
helm-config = helm-easymenu async-bytecomp advice async xclip edmacro
kmacro so= larized-theme solarized-definitions ido finder-inf package
easyme= nu epg-config url-handlers url-parse auth-source cl-seq eieio
eie= io-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<= /div>
cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan = thai
tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek r= omanian
slovak czech european ethiopic indian cyrillic chinese co= mposite
charscript charprop case-table epa-hook jka-cmpr-hook hel= p 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-pr= int-readable backquote kqueue
lcms2 multi-tty make-network-proces= s emacs)

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

--000000000000f68564057009d3de-- From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Jul 2018 20:33:02 +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: To: Jaan Altosaar Cc: 32042@debbugs.gnu.org Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.153056354727849 (code B ref 32042); Mon, 02 Jul 2018 20:33:02 +0000 Received: (at 32042) by debbugs.gnu.org; 2 Jul 2018 20:32:27 +0000 Received: from localhost ([127.0.0.1]:43969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa5Up-0007F6-IP for submit@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 ) 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 References: Date: Mon, 02 Jul 2018 16:32:18 -0400 In-Reply-To: (Jaan Altosaar's message of "Mon, 2 Jul 2018 16:13:14 -0400") Message-ID: <87zhz9l6p9.fsf@gmail.com> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) merge 32042 25753 quit Jaan Altosaar writes: > File "", line 1, in > 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. 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 for more details on installation. From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Resent-From: Jaan Altosaar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Jul 2018 21:19:02 +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: To: Noam Postavsky Cc: "32042@debbugs.gnu.org" <32042@debbugs.gnu.org> Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.15305663057078 (code B ref 32042); Mon, 02 Jul 2018 21:19:02 +0000 Received: (at 32042) by debbugs.gnu.org; 2 Jul 2018 21:18:25 +0000 Received: from localhost ([127.0.0.1]:43986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa6DJ-0001q5-6Z for submit@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 ) id 1fa6DF-0001pq-Rg for 32042@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@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@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@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@gmail.com> References: <87zhz9l6p9.fsf@gmail.com> From: Jaan Altosaar Date: Mon, 2 Jul 2018 17:18:09 -0400 X-Gmail-Original-Message-ID: Message-ID: 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 wrote: > merge 32042 25753 > quit > > Jaan Altosaar writes: > > > File "", line 1, in > > 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. > > > 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 for more details on > installation. > > > --00000000000007a27d05700abc52 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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).=C2=A0

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@gmail.com> wrote:
merge 32042 25753
quit

Jaan Altosaar <altosaar@princeton.edu> writes:

>=C2=A0 =C2=A0File "<ipython-input-1-57ce0cd600e5>"= , line 1, in <module>
>=C2=A0 =C2=A0 =C2=A0import codecs, os;__pyfile =3D
> codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2sc= nw0000gn/T/pyLbk6Vh''',
> encoding=3D'''utf-8''');__code =3D
> __pyfile.read().encode('''utf-8''');__pyf= ile.close();os.remove('''/var/folders/qr/s_h2rhqj6kdg= 8qrj0zw2scnw0000gn/T/pyLbk6Vh''');exec(compile(__code= ,
> '''/Users/jaan/tmp/test.py''', 'exec')= );

> Is there any way to clean up the output, especially the parts involvin= g
> `codecs.open('''/var/folders/qr/s_h2rhqj6kdg8qrj0zw2s= cnw0000gn/T/pyLbk6Vh'''`?

Try installing gnureadline, as described in etc/PROBLEMS:

=C2=A0 =C2=A0 *** In Inferior Python mode, input is echoed and native compl= etion doesn't work.
=C2=A0 =C2=A0 <https://debbugs.gnu.org/cgi/bugreport.cgi?= bug=3D25753>

=C2=A0 =C2=A0 This happens when python uses a libedit based readline module= , which
=C2=A0 =C2=A0 is the default on macOS.=C2=A0 This can be worked around by i= nstalling a
=C2=A0 =C2=A0 GNU readline based module instead, for example, using setupto= ols

=C2=A0 =C2=A0 =C2=A0 =C2=A0 sudo easy_install gnureadline

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

=C2=A0 =C2=A0 =C2=A0 =C2=A0 cd /Library/Frameworks/Python.framework/Ve= rsions/2.7/lib/python2.7/lib-dynload
=C2=A0 =C2=A0 =C2=A0 =C2=A0 mv readline.so readline.so.bak

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


--00000000000007a27d05700abc52-- From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Jul 2018 00:46: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: To: Jaan Altosaar Cc: "32042@debbugs.gnu.org" <32042@debbugs.gnu.org> Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.15305787551892 (code B ref 32042); Tue, 03 Jul 2018 00:46:01 +0000 Received: (at 32042) by debbugs.gnu.org; 3 Jul 2018 00:45:55 +0000 Received: from localhost ([127.0.0.1]:44183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa9S7-0000UQ-6N for submit@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 ) id 1fa9S5-0000U7-KW for 32042@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@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 References: <87zhz9l6p9.fsf@gmail.com> Date: Mon, 02 Jul 2018 20:45:45 -0400 In-Reply-To: (Jaan Altosaar's message of "Mon, 2 Jul 2018 17:18:09 -0400") Message-ID: <87va9xkuyu.fsf@gmail.com> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jaan Altosaar 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. From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output References: In-Reply-To: Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Jul 2018 14:45: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: To: 32042@debbugs.gnu.org Cc: jaan.altosaar@gmail.com Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.153097464722651 (code B ref 32042); Sat, 07 Jul 2018 14:45:01 +0000 Received: (at 32042) by debbugs.gnu.org; 7 Jul 2018 14:44:07 +0000 Received: from localhost ([127.0.0.1]:50248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fboRS-0005tH-MI for submit@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 ) id 1fboRQ-0005sh-TT for 32042@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@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 Date: Sat, 07 Jul 2018 10:43:57 -0400 Message-ID: <8736wvds2a.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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@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: References: <87zhz9l6p9.fsf@gmail.com> Message-ID: <291b6c7e-1e95-4ee1-bab7-4d8db52c0977@googlegroups.com> Subject: Re: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output From: jaan.altosaar@gmail.com To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain There was no change; I still see the broken output in the original post... ```File "", line 1, in 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. --=-=-=-- From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Jul 2018 16:43: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: To: Noam Postavsky Cc: 32042@debbugs.gnu.org, jaan.altosaar@gmail.com Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.15309817601626 (code B ref 32042); Sat, 07 Jul 2018 16:43:01 +0000 Received: (at 32042) by debbugs.gnu.org; 7 Jul 2018 16:42:40 +0000 Received: from localhost ([127.0.0.1]:50354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fbqIB-0000QA-R3 for submit@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 ) id 1fbqI9-0000Py-RR for 32042@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 ) id 1fbqI4-0006TL-36 for 32042@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 ) 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 ) id 1fbqI1-0006h6-9N; Sat, 07 Jul 2018 12:42:29 -0400 From: Glenn Morris References: <8736wvds2a.fsf@gmail.com> 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-Attribution: GM Date: Sat, 07 Jul 2018 12:42:28 -0400 In-Reply-To: <8736wvds2a.fsf@gmail.com> (Noam Postavsky's message of "Sat, 07 Jul 2018 10:43:57 -0400") Message-ID: 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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. From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Resent-From: Jaan Altosaar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jul 2018 13:00:02 +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: To: Noam Postavsky Cc: "32042@debbugs.gnu.org" <32042@debbugs.gnu.org> Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.153114117113238 (code B ref 32042); Mon, 09 Jul 2018 13:00:02 +0000 Received: (at 32042) by debbugs.gnu.org; 9 Jul 2018 12:59:31 +0000 Received: from localhost ([127.0.0.1]:51823 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcVlH-0003RO-5q for submit@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 ) id 1fcVlF-0003RC-Q7 for 32042@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@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@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@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@gmail.com> References: <87zhz9l6p9.fsf@gmail.com> <87va9xkuyu.fsf@gmail.com> From: Jaan Altosaar Date: Mon, 9 Jul 2018 08:59:13 -0400 X-Gmail-Original-Message-ID: Message-ID: 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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@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 "", line 1, in 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 wrote: > Jaan Altosaar 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 32042= @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..= .=C2=A0

```File "<ipython-input-1-57ce0cd6= 00e5>", line 1, in <module>=C2=A0
=C2=A0 =C2=A0 imp= ort codecs, os;__pyfile =3D codecs.open('''/var/folders/qr/s_h2= rhqj6kdg8qrj0zw2scnw0000gn/T/pyLbk6Vh''', encoding=3D''= 'utf-8''')=C2=A0
```=C2=A0

I tried:=C2=A0

Disabling system integrity prote= ction (booting into OS X High Sierra recovery mode and running `csrutil dis= able`), then=C2=A0

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

and the same for the anaconda readline:=C2=A0<= /div>

```=C2=A0
cd /usr/local/anaconda3/lib/py= thon3.6/lib-dynload=C2=A0
mv readline.cpython-36m-darwin.so readline.cpython-36m-darwi= n.so.bak=C2=A0
```=C2=A0

And installing = gnureadline.=C2=A0

Still getting the same broken o= utput.=C2=A0

Any other ideas?=C2=A0

On Mo= nday, July 2, 2018, Noam Postavsky <npostavs@gmail.com> wrote:
Jaan = Altosaar <altosaar@princeton.e= du> writes:

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

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
Anaconda.=C2=A0 Although I'm not sure where that would be.

--0000000000009a315d057090943d-- From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Jul 2018 19:56:02 +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: To: Jaan Altosaar Cc: "32042@debbugs.gnu.org" <32042@debbugs.gnu.org> Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.15311661559712 (code B ref 32042); Mon, 09 Jul 2018 19:56:02 +0000 Received: (at 32042) by debbugs.gnu.org; 9 Jul 2018 19:55:55 +0000 Received: from localhost ([127.0.0.1]:52784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fccGJ-0002Wa-A3 for submit@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 ) id 1fccGH-0002WK-EE for 32042@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@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: References: <87zhz9l6p9.fsf@gmail.com> <87va9xkuyu.fsf@gmail.com> From: Noam Postavsky Date: Mon, 9 Jul 2018 15:55:47 -0400 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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 From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output 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: To: "gnu.emacs.bug@googlegroups.com" Cc: "32042@debbugs.gnu.org" <32042@debbugs.gnu.org> Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.153126058918993 (code B ref 32042); Tue, 10 Jul 2018 22:10:01 +0000 Received: (at 32042) by debbugs.gnu.org; 10 Jul 2018 22:09:49 +0000 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 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 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 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 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) 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: References: <87zhz9l6p9.fsf@gmail.com> <87va9xkuyu.fsf@gmail.com> From: Jaan Altosaar Date: Tue, 10 Jul 2018 18:09:34 -0400 X-Gmail-Original-Message-ID: Message-ID: 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 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-- From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output 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: To: 32042@debbugs.gnu.org Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.153126089619482 (code B ref 32042); Tue, 10 Jul 2018 22:15:01 +0000 Received: (at 32042) by debbugs.gnu.org; 10 Jul 2018 22:14:56 +0000 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 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 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 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 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) 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: References: <87zhz9l6p9.fsf@gmail.com> <87va9xkuyu.fsf@gmail.com> From: Jaan Altosaar Date: Tue, 10 Jul 2018 18:14:42 -0400 X-Gmail-Original-Message-ID: Message-ID: 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 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.
```

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-- From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Jul 2018 22:37:02 +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: To: Jaan Altosaar Cc: "32042@debbugs.gnu.org" <32042@debbugs.gnu.org> Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.153126217321610 (code B ref 32042); Tue, 10 Jul 2018 22:37:02 +0000 Received: (at 32042) by debbugs.gnu.org; 10 Jul 2018 22:36:13 +0000 Received: from localhost ([127.0.0.1]:54419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd1Ez-0005cU-LM for submit@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 ) id 1fd1Ew-0005cF-3S for 32042@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@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 References: <87zhz9l6p9.fsf@gmail.com> <87va9xkuyu.fsf@gmail.com> Date: Tue, 10 Jul 2018 18:36:02 -0400 In-Reply-To: (Jaan Altosaar's message of "Tue, 10 Jul 2018 18:09:34 -0400") Message-ID: <87y3eibtwt.fsf@gmail.com> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Jaan Altosaar 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. From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Resent-From: Jaan Altosaar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 10 Jul 2018 22:52: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: To: "gnu.emacs.bug@googlegroups.com" Cc: "32042@debbugs.gnu.org" <32042@debbugs.gnu.org> Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.153126310523056 (code B ref 32042); Tue, 10 Jul 2018 22:52:01 +0000 Received: (at 32042) by debbugs.gnu.org; 10 Jul 2018 22:51:45 +0000 Received: from localhost ([127.0.0.1]:54430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd1U1-0005zo-Ae for submit@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 ) id 1fd1U0-0005zc-1c for 32042@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@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@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@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: References: <87zhz9l6p9.fsf@gmail.com> <87va9xkuyu.fsf@gmail.com> From: Jaan Altosaar Date: Tue, 10 Jul 2018 18:51:32 -0400 X-Gmail-Original-Message-ID: Message-ID: 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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@debbugs.gnu.org because I received this message: Address not found Your message wasn't delivered to gnu.emacs.bug@googlegroups.com because the address couldn't be found, or is unable to receive mail. On Tuesday, July 10, 2018, Noam Postavsky wrote: > Jaan Altosaar 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

Contents of init.el:

```
(setq
=C2=A0python-shell-inte= rpreter "ipython"
=C2=A0python-shell-interpreter-args &= quot;--simple-prompt --classic --nosep"
)
```

And launching the prompt with `M-x run-python`.<= /div>

Sorry for the double messages; I resent only = to=C2=A0
32042@debbugs.gnu.org= =C2=A0because I received this message:

Addres= s not found
Your message wasn't delivered to gnu.emacs.bug@googlegroups.com becaus= e the address couldn't be found, or is unable to receive mail.

On Tuesday, July 10, 2018, Noam Postavsky <npostavs@gmail.com> wrote:
Jaan Altosaar <a= ltosaar@princeton.edu> writes:

> Python 3.6.6 |Anaconda custom (64-bit)| (default, Jun 28 2018, 11:07:2= 9)
> Type 'copyright', 'credits' or 'license' for m= ore 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.=C2=A0 Do you see the same &q= uot;using
GNU readline" output when doing the same from within Emacs?

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




--000000000000b7f98b0570acf8cb-- From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Jul 2018 00:33: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: To: Jaan Altosaar Cc: "32042@debbugs.gnu.org" <32042@debbugs.gnu.org> Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.15312691641375 (code B ref 32042); Wed, 11 Jul 2018 00:33:01 +0000 Received: (at 32042) by debbugs.gnu.org; 11 Jul 2018 00:32:44 +0000 Received: from localhost ([127.0.0.1]:54489 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd33j-0000M2-SR for submit@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 ) 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 References: <87zhz9l6p9.fsf@gmail.com> <87va9xkuyu.fsf@gmail.com> Date: Tue, 10 Jul 2018 20:32:33 -0400 In-Reply-To: (Jaan Altosaar's message of "Tue, 10 Jul 2018 18:51:32 -0400") Message-ID: <87va9mboim.fsf@gmail.com> 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 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@debbugs.gnu.org because I received this message: > > Address not found > Your message wasn't delivered to gnu.emacs.bug@googlegroups.com because the > address couldn't be found, or is unable to receive mail. Ah, the gnu.emacs.bug@googlegroups.com email address is indeed bogus, but as long as the 32042@debbugs.gnu.org message goes through, the bug tracker is fine. From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: bug#49822: master e32c7d2: Change Python eval to send directly instead of using temporary files Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Sep 2021 07:42: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: confirmed To: Augusto Stoffel Cc: 49822@debbugs.gnu.org, 32042@debbugs.gnu.org, Stefan Monnier , emacs-devel@gnu.org Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.163082771617034 (code B ref 32042); Sun, 05 Sep 2021 07:42:01 +0000 Received: (at 32042) by debbugs.gnu.org; 5 Sep 2021 07:41:56 +0000 Received: from localhost ([127.0.0.1]:49065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMmmp-0004Qe-MU for submit@debbugs.gnu.org; Sun, 05 Sep 2021 03:41:55 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMmmn-0004QO-Jb; Sun, 05 Sep 2021 03:41:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=W8frVmKtSZqeCZQTNm7uZOIswE0vNBommsiy+cAPff8=; b=J8pcYB7bFoGBv5z9Z5nlRizcfS 70iIVeHdlN+ZDiTXRg8y3frvrHZDDV8YbRyRh8YxUYohJN6ej+pBnbHOaQjan9WtBbUOjjTD2WYcG xE188vIaL0cldm+46SjymaUBJx/+NRi3J1Yd+oGzXAPmPB4OW8y6HuMqppBECZSOCQ6Y=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMmmY-000300-IB; Sun, 05 Sep 2021 09:41:41 +0200 From: Lars Ingebrigtsen References: <20210903122828.16890.65271@vcs0.savannah.gnu.org> <20210903122829.EAAC220B71@vcs0.savannah.gnu.org> <87r1e4eklw.fsf@gmail.com> Date: Sun, 05 Sep 2021 09:41:37 +0200 In-Reply-To: <87r1e4eklw.fsf@gmail.com> (Augusto Stoffel's message of "Sat, 04 Sep 2021 11:49:31 +0200") Message-ID: <87ilzfpiz2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Augusto Stoffel writes: > I've attached a patch that reverts to using temporary files for > sufficiently long strings (would this magic 4096 ever require > customization?). The patch also solves bug#32042, which is mostly > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Augusto Stoffel writes: > I've attached a patch that reverts to using temporary files for > sufficiently long strings (would this magic 4096 ever require > customization?). The patch also solves bug#32042, which is mostly > unrelated. Thanks; pushed to Emacs 28 (and I guess I'll close bug#32042, then). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Tue Aug 12 08:32:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Sep 2021 07:44: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: confirmed To: Noam Postavsky Cc: "32042@debbugs.gnu.org" <32042@debbugs.gnu.org>, Jaan Altosaar Received: via spool by 32042-submit@debbugs.gnu.org id=B32042.163082778117168 (code B ref 32042); Sun, 05 Sep 2021 07:44:01 +0000 Received: (at 32042) by debbugs.gnu.org; 5 Sep 2021 07:43:01 +0000 Received: from localhost ([127.0.0.1]:49072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMmnt-0004Sm-7r for submit@debbugs.gnu.org; Sun, 05 Sep 2021 03:43:01 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMmnr-0004SS-BA for 32042@debbugs.gnu.org; Sun, 05 Sep 2021 03:42:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5CuaU9OHBMAx9p46CPKdJJD5S5rr+fDTR7GU52lmen4=; b=S3GaYBPHvVK8p/FrLAliuJic1T RgvTUu/mbfz3zoW/5a+C8dRVxjsvknSLDAtgCZxd5CZtv7SQO8eaLCMjuOjcz/jjxUxswWrNJoQml b+oLWFnAyp1Lf9/HetBSAI68kGNIQca39HFjdsG0vj83P16fOCiI5RTfy61VvdGqiZCA=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMmni-00030X-AO; Sun, 05 Sep 2021 09:42:52 +0200 From: Lars Ingebrigtsen References: <87zhz9l6p9.fsf@gmail.com> <87va9xkuyu.fsf@gmail.com> <87va9mboim.fsf@gmail.com> Date: Sun, 05 Sep 2021 09:42:44 +0200 In-Reply-To: <87va9mboim.fsf@gmail.com> (Noam Postavsky's message of "Tue, 10 Jul 2018 20:32:33 -0400") Message-ID: <87eea3pix7.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Noam Postavsky writes: > 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 Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Noam Postavsky writes: > 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 This should now be fixed in Emacs 28 with: commit c9b173ffea1fe41da385cea135c894fcf523e917 (HEAD -> master) Author: Augusto Stoffel AuthorDate: Sat Sep 4 11:16:11 2021 +0200 So I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 05 03:43:05 2021 Received: (at control) by debbugs.gnu.org; 5 Sep 2021 07:43:06 +0000 Received: from localhost ([127.0.0.1]:49075 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMmnx-0004TE-Jc for submit@debbugs.gnu.org; Sun, 05 Sep 2021 03:43:05 -0400 Received: from quimby.gnus.org ([95.216.78.240]:48874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMmnw-0004SZ-3v for control@debbugs.gnu.org; Sun, 05 Sep 2021 03:43:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Myexu3mCNu6E8audI70Il22WxdgpBWBP+iSkCzBByjI=; b=HaJPdNTKdhPPbv9P3n5oS9rHJ4 wSl+GWDDxalAWG8aLustGpP/JRIPIxT2T7VLTuE48dcqbmygUByQYAHBaLXfzQQyVb4fSkyqN+pkf gHTw5IGO7V/QVBrqH1fW2nJDMrYZy3nziFKyYfKIYGfRfgQ27xlZ7lvz3GPy6ISFweyg=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMmno-00030e-9x for control@debbugs.gnu.org; Sun, 05 Sep 2021 09:42:58 +0200 Date: Sun, 05 Sep 2021 09:42:54 +0200 Message-Id: <87czpnpiwx.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #32042 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 32042 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 32042 28.1 quit