From unknown Sun Jun 22 11:46:56 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21431: 24.5; Double outputs, weird elements while using python shell Resent-From: Johnny Zhao Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 08 Sep 2015 04:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21431 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 21431@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14416874956459 (code B ref -1); Tue, 08 Sep 2015 04:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 8 Sep 2015 04:44:55 +0000 Received: from localhost ([127.0.0.1]:51995 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZAm5-0001g5-RF for submit@debbugs.gnu.org; Tue, 08 Sep 2015 00:44:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52708) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZZ9nN-0000GA-Ty for submit@debbugs.gnu.org; Mon, 07 Sep 2015 23:42:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZ9nL-0000N9-Mz for submit@debbugs.gnu.org; Mon, 07 Sep 2015 23:42:09 -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.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:38624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZ9nL-0000Mo-K5 for submit@debbugs.gnu.org; Mon, 07 Sep 2015 23:42:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZ9nJ-0002Gs-GY for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2015 23:42:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZ9nH-0000Hq-Et for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2015 23:42:05 -0400 Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:34249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZ9nH-0000HL-8A for bug-gnu-emacs@gnu.org; Mon, 07 Sep 2015 23:42:03 -0400 Received: by iofb144 with SMTP id b144so104433103iof.1 for ; Mon, 07 Sep 2015 20:42:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=nVDdf7nXz4mCpc5SWV10ZHdwbaF9bxtIg2pa9B1qr2k=; b=gwXWtMX7ULGXlqZTgIAtZTE3FOOyXlSG4XbFcixtmy7d7gdx2+i11M/VLrcs/DE1uZ CVzE2VNHYBAA+qKRBCGb7gbUpmgwBpug1OKiuKyhbaadZxuMaNdloGnPDn6TkgptyIau lVJQLeh5VHutyzqLFin/CrXAxSoVz0A83/Jy13gZ3fbgWUAem+FNHRUjopHYEi/CMzOs GcVvHr416lrmlOPCICDMHeXq+2q5HYP0L9RTNx9o2yY13vaWUaY3PWwIrQp3mLy4HiQc PEJVhYOoedO75IuDB8xJHnIWGHSVpaR4Tx9VMiU8J+XCLciQLni8ow354pdqgUrwvcT5 D56w== MIME-Version: 1.0 X-Received: by 10.107.13.75 with SMTP id 72mr33861038ion.75.1441683722412; Mon, 07 Sep 2015 20:42:02 -0700 (PDT) Received: by 10.79.81.69 with HTTP; Mon, 7 Sep 2015 20:42:02 -0700 (PDT) Date: Mon, 7 Sep 2015 23:42:02 -0400 Message-ID: From: Johnny Zhao Content-Type: multipart/alternative; boundary=001a114097b2272e0f051f3426eb X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Mailman-Approved-At: Tue, 08 Sep 2015 00:44:52 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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.8 (---) --001a114097b2272e0f051f3426eb Content-Type: text/plain; charset=UTF-8 Message-ID: --text follows this line-- This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from 'emacs -Q': *Description:* I first started creating a python file, L2_1.py. And I wrote two lines of code in that file: num = raw_input("Enter a num? ") print num Then, I pressed C-c C-c to send the code to python shell. And pressed C-c C-z to activate the interactive python shell itself. Then there is an error appeared after >>>. *Error: *>>>import codecs, os;__pyfile = codecs.open('''/var/folders/pp/f3d79ck56qg0vr86723zymtw0000gn/Tpy10804Poh''', encoding = '''utf-8''');__code = __pyfile.read().encode('''utf-8''');__pyfile.close();os.remove('''/var/folders/pp/f3d79ck56qg0vr86723zymtw0000gn/T/py10804Poh''');exec(compile(__code, '''/Users/dongzhao/Documents/pyEnv/6.00.1x/L2_1.py''', 'exec')); Enter a num? 2 2 2 >>> In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org Windowing system distributor `Apple', version 10.3.1348 Configured using: `configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: show-paren-mode: t pyvenv-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: [yas] Prepared just-in-time loading for /Users/dongzhao/.emacs.d/elpa/elpy-1.9.0/snippets/ [yas] Prepared just-in-time loading for /Users/dongzhao/.emacs.d/elpa/yasnippet-0.8.0/snippets [yas] Check your `yas-snippet-dirs': ~/.emacs.d/snippets is not a directory [yas] Reloaded everything (snippets will load just-in-time)... (some errors, check *Messages*). Loading /Users/dongzhao/.emacs.d/el-get/color-theme/themes/color-theme-example.el (source)...done Loading /Users/dongzhao/.emacs.d/el-get/color-theme/themes/color-theme-library.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils afternoon-theme autopair byte-opt paren switch-window quail ido-hacks buffer-move windmove cl-macs color-theme .loaddefs el-get el-get-autoloading el-get-list-packages el-get-dependencies el-get-build el-get-status pp el-get-methods el-get-fossil el-get-svn el-get-pacman el-get-github-zip el-get-github-tar el-get-http-zip el-get-http-tar el-get-hg el-get-go el-get-git-svn el-get-fink el-get-emacswiki el-get-http el-get-notify el-get-emacsmirror el-get-github el-get-git el-get-elpa el-get-darcs el-get-cvs el-get-bzr el-get-brew el-get-builtin el-get-apt-get el-get-recipes el-get-byte-compile el-get-custom el-get-core autoload lisp-mnt bytecomp byte-compile cconv dired cl-extra yasnippet advice help-mode cl gv highlight-indentation flymake eldoc company edmacro kmacro help-fns elpy pyvenv elpy-refactor python json ido grep compile comint ansi-color files-x etags ring cus-edit easymenu cus-start cus-load wid-edit cl-loaddefs cl-lib package epg-config time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process cocoa ns multi-tty emacs) Memory information: ((conses 16 258336 8445) (symbols 48 27014 0) (miscs 40 40 203) (strings 32 46630 6814) (string-bytes 1 1106561) (vectors 16 18181) (vector-slots 8 458453 6340) (floats 8 201 204) (intervals 56 218 0) (buffers 960 11)) --001a114097b2272e0f051f3426eb Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Message-ID: <m2pp1tr3is.fsf@gmail.com>

--text follows this line--
Thi= s bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug= tracker at debbugs.gnu.org. Please = check that From: line contains a valid email address. After a delay of up t= o one day, you should receive an acknowledgment at that address.

Ple= ase write in English if possible, as the Emacs maintainers usually do not h= ave translators for other languages.

Please describe exactly what ac= tions triggered the bug, and the precise symptoms of the bug. If you can, g= ive a recipe starting from 'emacs -Q':

Description:= I first started creating a python file, L2_1.py. And I wrotetwo lines of code in that file:

num =3D raw_input("Enter a nu= m? ")
print num

Then, I pressed C-c C-c to send the code to = python shell. And pressed
C-c C-z to activate the interactive python she= ll itself. Then there is
an error appeared after >>>.

Error: >>>import codecs, os;__pyfile =3D
cod= ecs.open('''/var/folders/pp/f3d79ck56qg0vr86723zymtw0000gn/Tpy1= 0804Poh''',
encoding =3D '''utf-8'''= );__code =3D
__pyfile.read().encode('''utf-8''')= ;__pyfile.close();os.remove('''/var/folders/pp/f3d79ck56qg0vr86= 723zymtw0000gn/T/py10804Poh''');exec(compile(__code,
'&#= 39;'/Users/dongzhao/Documents/pyEnv/6.00.1x/L2_1.py''', = 9;exec'));
Enter a num? 2
2
2
>>>



<= br>In GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21)=
=C2=A0of 2015-04-10 on buil= der10-9.porkrind.org
Windowing system distributor `Apple', versi= on 10.3.1348
Configured using:
=C2=A0`configure --with-ns '--enab= le-locallisppath=3D/Library/Application
=C2=A0Support/Emacs/${version}/s= ite-lisp:/Library/Application
=C2=A0Support/Emacs/site-lisp''
Important settings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 lo= cale-coding-system: utf-8-unix

Major mode: Lisp Interaction

M= inor modes in effect:
=C2=A0 show-paren-mode: t
=C2=A0 pyvenv-mode: t=
=C2=A0 tooltip-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mous= e-wheel-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode:= t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0= blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-enc= ryption-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mo= de: t
=C2=A0 transient-mark-mode: t

Recent messages:
[yas] Pre= pared just-in-time loading for /Users/dongzhao/.emacs.d/elpa/elpy-1.9.0/sni= ppets/
[yas] Prepared just-in-time loading for /Users/dongzhao/.emacs.d/= elpa/yasnippet-0.8.0/snippets
[yas] Check your `yas-snippet-dirs': ~= /.emacs.d/snippets is not a directory
[yas] Reloaded everything (snippet= s will load just-in-time)... (some errors, check *Messages*).
Loading /U= sers/dongzhao/.emacs.d/el-get/color-theme/themes/color-theme-example.el (so= urce)...done
Loading /Users/dongzhao/.emacs.d/el-get/color-theme/themes/= color-theme-library.el (source)...done
For information about GNU Emacs a= nd the GNU system, type C-h C-a.

Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format= -spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc223= 1 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm= -util
mail-prsvr mail-utils afternoon-theme autopair byte-opt paren
s= witch-window quail ido-hacks buffer-move windmove cl-macs color-theme
.l= oaddefs el-get el-get-autoloading el-get-list-packages
el-get-dependenci= es el-get-build el-get-status pp el-get-methods
el-get-fossil el-get-svn= el-get-pacman el-get-github-zip
el-get-github-tar el-get-http-zip el-ge= t-http-tar el-get-hg el-get-go
el-get-git-svn el-get-fink el-get-emacswi= ki el-get-http el-get-notify
el-get-emacsmirror el-get-github el-get-git= el-get-elpa el-get-darcs
el-get-cvs el-get-bzr el-get-brew el-get-built= in el-get-apt-get
el-get-recipes el-get-byte-compile el-get-custom el-ge= t-core autoload
lisp-mnt bytecomp byte-compile cconv dired cl-extra yasn= ippet advice
help-mode cl gv highlight-indentation flymake eldoc company= edmacro
kmacro help-fns elpy pyvenv elpy-refactor python json ido grep = compile
comint ansi-color files-x etags ring cus-edit easymenu cus-start=
cus-load wid-edit cl-loaddefs cl-lib package epg-config time-date
to= oltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel
ns-wi= n tool-bar dnd fontset image regexp-opt fringe tabulated-list
newcomment= lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scr= oll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham ge= orgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean = japanese hebrew greek romanian slovak czech european
ethiopic indian cyr= illic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minib= uffer nadvice loaddefs button faces cus-face macroexp
files text-propert= ies overlay sha1 md5 base64 format env code-pages mule
custom widget has= htable-print-readable backquote make-network-process
cocoa ns multi-tty = emacs)

Memory information:
((conses 16 258336 8445)
=C2=A0(sym= bols 48 27014 0)
=C2=A0(miscs 40 40 203)
=C2=A0(strings 32 46630 6814= )
=C2=A0(string-bytes 1 1106561)
=C2=A0(vectors 16 18181)
=C2=A0(v= ector-slots 8 458453 6340)
=C2=A0(floats 8 201 204)
=C2=A0(intervals = 56 218 0)
=C2=A0(buffers 960 11))
--001a114097b2272e0f051f3426eb-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 04 12:11:01 2017 Received: (at control) by debbugs.gnu.org; 4 Jun 2017 16:11:01 +0000 Received: from localhost ([127.0.0.1]:55984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHY7J-0005SB-Gf for submit@debbugs.gnu.org; Sun, 04 Jun 2017 12:11:01 -0400 Received: from mail-it0-f53.google.com ([209.85.214.53]:38621) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHY7H-0005Rx-CD for control@debbugs.gnu.org; Sun, 04 Jun 2017 12:11:00 -0400 Received: by mail-it0-f53.google.com with SMTP id r63so56725591itc.1 for ; Sun, 04 Jun 2017 09:10:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=hYQ2z0KaR6oGw6RZu5aaFnJ0Uv1+s5Nll223LXcIbQU=; b=cMJXD9ITkkmesQCUyBipVUqK07BaHKsW4Vyc3waXBmjTlzxyHYL6WnLEdKd52izzbW hLpKfIzc/L/Ap6O9fP05u6aTkCB4hOL1VI9X/Dp3NBbtJPG65W9Ua4glQCuNPu8LqUCk w++bkKDDrQZBDvUbg+aPm6o1lKnvUHKY+q1rvP/pld3gA7Cv/xNsFmRhM4MD3wCto1A7 VqdHIBpi4eCmCcVa17QiKGUMD9uenADhXoGNZs4FTGbc1GU4w+I1aBc+h44Vf6MB0k0T baAcyb9aOeuGpmMc92Nx866JN/TCM70xuf+DK6bHq9pWCQTjyxpkkSZe3BmI2NoTmjax i5rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=hYQ2z0KaR6oGw6RZu5aaFnJ0Uv1+s5Nll223LXcIbQU=; b=EIV6IJkHYj0Duyp2MGueo2GHtchofNLdzQO9XSTeqCGWLcUl1xuAi6Qa1I1JQ8Q1YT niSjCxwc3bR9EckfH5bXZ9X0nbZWSxjM3kYKkcRCBtFIMv5aT1HyGHV+kIleeVTdEFuh Wj0NsKXYBs2Pibug14IDr/y4nZLCTglCiopy4NC4Qla4VLCb5ni8ZAzRUuVFF4LqER0g CWImqueHjfB71t5ByDH5MajjlUrEeiOzX63y0G82ZSn4t5F/x2qIoKQh2foH9VXYSPC+ oAQQqUAGSjX1w3ZUZMEosNwLqbNNN9csSNxokic4qRU1WiOlyob+R2Q3kW1FPPpa1ueW i5FA== X-Gm-Message-State: AODbwcBe0ANg+RZ6Gp89I/v8uJYov14Jka8UtH2MH7DA+i63FXGpHEZX vNMWRuzPLPvHziwe X-Received: by 10.36.227.6 with SMTP id d6mr8491625ith.79.1496592653589; Sun, 04 Jun 2017 09:10:53 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id c1sm3812199itd.15.2017.06.04.09.10.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 04 Jun 2017 09:10:53 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #26326 Date: Sun, 04 Jun 2017 12:12:31 -0400 Message-ID: <87d1ajzq8g.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) 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: -0.0 (/) merge 26326 21431 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 03 11:25:03 2017 Received: (at control) by debbugs.gnu.org; 3 Jul 2017 15:25:03 +0000 Received: from localhost ([127.0.0.1]:50515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dS3Dj-0000wd-MW for submit@debbugs.gnu.org; Mon, 03 Jul 2017 11:25:03 -0400 Received: from mail-io0-f169.google.com ([209.85.223.169]:35957) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dS3Di-0000w4-Di for control@debbugs.gnu.org; Mon, 03 Jul 2017 11:25:02 -0400 Received: by mail-io0-f169.google.com with SMTP id z62so58364542ioi.3 for ; Mon, 03 Jul 2017 08:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=JX9pss7t9Ip+RDvMr0+IZdnMkAuO4WVPwUscdFRopdw=; b=CllwHNk5Cte5x0IciKptqHT2gVnYWgH+gA2doNraD9FSyK5C4zzUQdN2P/Igdw+LDy GW1DBo4wuEhWfDaUC2V7DlV77Ebq9TjSY7lOM8h656GE5rdFtc7RzGTvDNBudPIXBAYz ICD5tT/uLywH452/kfYvVp5x2NYhEYN7gmQoBvRPWZRVhCQFgNgU66BgJdB2Ebx1rcZR ss4PyFKkgCrMrqd8Gv5zjHCYsYFJbdDYY9xDOf0J7W4VGEwiUuBlLmlTraV4G5APX5xu UJ+k6gWGdVI8x8Zrw9PSVZi9y7zn31rUUQUvl9ueqdERmFD2Ttytv9BMg3v44MNAgRmJ MeZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=JX9pss7t9Ip+RDvMr0+IZdnMkAuO4WVPwUscdFRopdw=; b=c3jyEaBIPpFVK0z68AAukwy40K6kpfbkx09jojAoJ+aqcoxLG0bdeKnpiq86YDtNd0 O6Y/LJFWFx6ybHlJdE8M1UuweT3x7TxKLNSaEO0ufWmNuRxOds/hqtAv+w0EWbMErcL3 ZbULNDeuHpZIGkEoUC0SH2wk0+yUgBW59LhcTWhgGwwZWCPtNN2Bp7APmuO6qGbwNNk3 k79nLsyVSYyY5RryScTzp9t99mVdCWGCzUJANlYEQpIcYPlgdptnda1dO+fAjmFRvlz4 KphOKcHTTGa3QBYxLHLK/7yMPkIq5X+1UeesRuRNR1lUiLXMLgUHwZiEh1mjqJTfrmlL ulAg== X-Gm-Message-State: AIVw112YXh1zMIfFWEqfsuAdHzRUCy5xTGV28/NnwKAQKYrVXsrQO08Q rm1md7sLdpyETS4A X-Received: by 10.107.28.84 with SMTP id c81mr7174734ioc.186.1499095496873; Mon, 03 Jul 2017 08:24:56 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id z143sm5332807iof.27.2017.07.03.08.24.56 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jul 2017 08:24:56 -0700 (PDT) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #22796 Date: Mon, 03 Jul 2017 11:26:33 -0400 Message-ID: <871spxk0d2.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) 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: -2.1 (--) merge 22796 21431 quit From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 02 16:32:27 2018 Received: (at control) by debbugs.gnu.org; 2 Jul 2018 20:32:27 +0000 Received: from localhost ([127.0.0.1]:43967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa5Up-0007F0-8w 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 To: Jaan Altosaar Subject: Re: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output 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-Debbugs-Envelope-To: control Cc: 32042@debbugs.gnu.org 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 debbugs-submit-bounces@debbugs.gnu.org Tue Jul 10 20:32:43 2018 Received: (at control) by debbugs.gnu.org; 11 Jul 2018 00:32:43 +0000 Received: from localhost ([127.0.0.1]:54487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd33j-0000Lz-Jp for submit@debbugs.gnu.org; Tue, 10 Jul 2018 20:32:43 -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 To: Jaan Altosaar Subject: Re: bug#32042: 26.1; python.el with ipython prompt leads to superfluous interactive shell output 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-Debbugs-Envelope-To: control Cc: "32042@debbugs.gnu.org" <32042@debbugs.gnu.org> 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.