From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Monib Ahmed Newsgroups: gmane.emacs.bugs Subject: bug#26326: 25.1; "import codecs, os; ..." Weird output in python shell Mac OS X Date: Fri, 31 Mar 2017 12:14:44 -0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f403045f8bce4c2411054c0b9ff0 X-Trace: blaine.gmane.org 1490988859 9858 195.159.176.226 (31 Mar 2017 19:34:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 31 Mar 2017 19:34:19 +0000 (UTC) To: 26326@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 31 21:34:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cu2JB-0001PT-E1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Mar 2017 21:34:05 +0200 Original-Received: from localhost ([::1]:42623 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cu2JH-0002BS-Gy for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Mar 2017 15:34:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cu2JA-0002BC-J5 for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:34:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cu2J8-0006il-Kw for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:34:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56589) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cu2J8-0006iX-Ho for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cu2J8-0001r3-Bv for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Monib Ahmed Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Mar 2017 19:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26326 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14909888037077 (code B ref -1); Fri, 31 Mar 2017 19:34:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Mar 2017 19:33:23 +0000 Original-Received: from localhost ([127.0.0.1]:54788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cu2IV-0001q4-44 for submit@debbugs.gnu.org; Fri, 31 Mar 2017 15:33:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cu20e-0001Ny-NI for submit@debbugs.gnu.org; Fri, 31 Mar 2017 15:14:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cu20X-0001mj-JX for submit@debbugs.gnu.org; Fri, 31 Mar 2017 15:14:51 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44105) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cu20X-0001mZ-Ft for submit@debbugs.gnu.org; Fri, 31 Mar 2017 15:14:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cu20V-0003vH-Hr for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:14:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cu20T-0001kC-Lu for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:14:47 -0400 Original-Received: from mail-ua0-x234.google.com ([2607:f8b0:400c:c08::234]:35621) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cu20T-0001jM-FD for bug-gnu-emacs@gnu.org; Fri, 31 Mar 2017 15:14:45 -0400 Original-Received: by mail-ua0-x234.google.com with SMTP id d64so247644uad.2 for ; Fri, 31 Mar 2017 12:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=BHWDwSPfYp3D4hRQKCnJQ/ievT9Lckx2Gm84E8i4fZs=; b=Z4eWy6CWIJBZ6AKpmt0DQnH+gR75Ars/1Mzy+cJ51Dh/iaHsp9+MPZ7OU7DjMewG4q 1hdZH96lq94dyiGzAgq0Uc6Ii/8R3bH19D0DhyRObFwUDOymgGSfIM9Ic7X3npfPaVoR biM/WbUl4sgTpk4vJJIME0l5MdLULoYBI63a/ZG236sUUxY8p2YS+hHIr2xL3/P5xYUe 9QciSVklRwdtLeUk+3PPi/NOyUKTfIYsScL+6NqFYpgl5WynHe1ppWtB8bq4KHQhEuEP lK0tuV1/T+6QYQ2som0mZE5Lvl8EyNuY62mmOeNAIFAkCANBQFOlHYXdPe/7AJl+2rTJ /rxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=BHWDwSPfYp3D4hRQKCnJQ/ievT9Lckx2Gm84E8i4fZs=; b=aDblQKFtnNvUrkOXGBc5ezItfdviuQ4QwY636XpVVgSrH5zT3bkje6c7qTIj0UtCSZ uAPrqW9gcfblFx51t0kXT3Xtabs5fBneQT26fonZSw3qqWE3UPbErzfHakHJJ3qQqKkQ i9vbu0oS/gkuz+mFxSZ0OU8ttmmuZEzJGk/n7la+SiuaOl+T82fTltGdTNOOyyW/uCsQ 67kmom4/PpR+7Txvyx98kGbJjwpVKTPhpM90NGV25TzzO/xuK2z+j7xTlyhZFL2MGMH3 i/A9CV+AVt8Q8T0clWYOzwMLoGhsbkWzj0Tcq2/cymbX8Y1yRaC0AeeWksy1Wz9djscz UZZQ== X-Gm-Message-State: AFeK/H3P1PZefifUlPN0SLYyDh9PC9sJSsISwkRYMSoo+r5wLBAnqQ1UyOlIJZxMRFadusE2pGNqb4aUpu0Meg== X-Received: by 10.176.75.216 with SMTP id b24mr2280576uag.161.1490987684458; Fri, 31 Mar 2017 12:14:44 -0700 (PDT) Original-Received: by 10.176.88.193 with HTTP; Fri, 31 Mar 2017 12:14:44 -0700 (PDT) X-Google-Sender-Auth: owOdZCi5zvy3Dcl2kIeS4-Dzbk0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Fri, 31 Mar 2017 15:33:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131145 Archived-At: --f403045f8bce4c2411054c0b9ff0 Content-Type: text/plain; charset=UTF-8 From: Monib Ahmed To: bug-gnu-emacs@gnu.org Subject: 25.1; "import codecs, os;..." Weird output in python shell Mac OS X --text follows this line-- Hi, I wrote a simple "Hello World" python script, and the output is weird: >>> import codecs, os;__pyfile = codecs.open('''/var/folders/f9/y1xt5ytn02v2n7p8pk3_h4xw0000gn/T/py1281TtN''', encoding='''utf-8''');__code = __pyfile.read().encode('''utf-8''');__pyfile.close();os.remove('''/var/folders/f9/y1xt5ytn02v2n7p8pk3_h4xw0000gn/T/py1281TtN''');exec(compile(__code, '''/Users/monibahmed/Documents/Python/people_class/hello_world.py''', 'exec')); Hi Hello World! >>> Any recommendation on how to fix this? Thanks, Monib In GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1911)) of 2016-09-20 built on builder10-9.porkrind.org Windowing system distributor 'Apple', version 10.3.1404 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: diff-auto-refine-mode: t pyvenv-mode: t shell-dirtrack-mode: t global-linum-mode: t linum-mode: t show-paren-mode: t save-place-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-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: Mark set Mark saved where search started Mark set Mark saved where search started Saving file /Users/monibahmed/.emacs.d/init.el... Wrote /Users/monibahmed/.emacs.d/init.el Mark saved where search started (No changes need to be saved) previous-line: Beginning of buffer [2 times] next-line: End of buffer [14 times] previous-line: Beginning of buffer [3 times] Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired rfc822 mml mml-sec epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums misearch multi-isearch vc-git diff-mode easy-mmode warnings tramp-cache thingatpt company-oddmuse company-keywords company-etags company-gtags company-dabbrev-code company-dabbrev company-files company-cmake company-xcode company-clang company-eclim company-template company-css company-nxml company-bbdb py-autopep8 flycheck rx subr-x dash yasnippet highlight-indentation flymake company elpy pyvenv elpy-profile elpy-django s elpy-refactor python tramp-sh tramp tramp-compat tramp-loaddefs trampver shell pcomplete format-spec grep compile files-x etags xref project cus-edit cus-start cus-load wid-edit linum material-theme ein-notebook eieio-opt speedbar sb-image ezimage dframe find-func ein-inspector ein-traceback ein-pytools ein-pager ein-completer ein-subpackages ein-notification ein-scratchsheet ein-worksheet advice ein-kill-ring ein-cell-output ein-cell-edit ein-cell ein-output-area xml comint ring ein-kernelinfo ein-kernel ein-ipdb ein-events eieio-compat ein-websocket websocket bindat ansi-color ein-contents-api ein-query request mail-utils url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs gnus-util mm-util help-fns mail-prsvr password-cache url-vars mailcap cl ein-node ein-log ein-core ein-utils json map cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ewoc ein-loaddefs ein finder-inf paren edmacro kmacro saveplace ido info package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win ucs-normalize term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev 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 cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 425471 23113) (symbols 48 40207 0) (miscs 40 902 1134) (strings 32 85244 13367) (string-bytes 1 2542596) (vectors 16 61153) (vector-slots 8 1064764 7383) (floats 8 1067 542) (intervals 56 2595 465) (buffers 976 98)) --f403045f8bce4c2411054c0b9ff0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
From: Monib Ahmed <monibahmed@Monibs-MacBook-Pro.l= ocal>
Subject: 25.1; "import codecs, os;..." W= eird output in python shell Mac OS X
--text follows this line--

Hi, I wrote a simple "Hello World" python= script, and the output is
weird:

>&g= t;> import codecs, os;__pyfile =3D codecs.open('''/var/folde= rs/f9/y1xt5ytn02v2n7p8pk3_h4xw0000gn/T/py1281TtN''', encoding= =3D'''utf-8''');__code =3D __pyfile.read().encode(&= #39;''utf-8''');__pyfile.close();os.remove(''&#= 39;/var/folders/f9/y1xt5ytn02v2n7p8pk3_h4xw0000gn/T/py1281TtN'''= ;);exec(compile(__code, '''/Users/monibahmed/Documents/Python/p= eople_class/hello_world.py''', 'exec'));
Hi
Hello World!
>>>

Any r= ecommendation on how to fix this?

Thanks,
Monib




In GNU Emacs 25.1.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Versio= n 10.9.5 (Build 13F1911))
=C2=A0of 2016-09-20 built on builder10-9.porkrind.org
Wi= ndowing system distributor 'Apple', version 10.3.1404
Con= figured using:
=C2=A0'configure --with-ns '--enable-local= lisppath=3D/Library/Application
=C2=A0Support/Emacs/${version}/si= te-lisp:/Library/Application
=C2=A0Support/Emacs/site-lisp' -= -with-modules'

Configured features:
= NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES
Important settings:
=C2=A0 value of $LANG: en_US.UTF-= 8
=C2=A0 locale-coding-system: utf-8-unix

Major mode: Emacs-Lisp

Minor modes in effect:
=C2=A0 diff-auto-refine-mode: t
=C2=A0 pyvenv-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 global-linum-mode: t<= /div>
=C2=A0 linum-mode: t
=C2=A0 show-paren-mode: t
=C2=A0 save-place-mode: t
=C2=A0 tooltip-mode: t
=C2= =A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-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-encryption-mode: t
=C2=A0 auto-compressio= n-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-m= ark-mode: t

Recent messages:
Mark set
Mark saved where search started
Mark set
Mark s= aved where search started
Saving file /Users/monibahmed/.emacs.d/= init.el...
Wrote /Users/monibahmed/.emacs.d/init.el
Mar= k saved where search started
(No changes need to be saved)
<= div>previous-line: Beginning of buffer [2 times]
next-line: End o= f buffer [14 times]
previous-line: Beginning of buffer [3 times]<= /div>

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message= dired rfc822 mml mml-sec epg
mm-decode mm-bodies mm-encode mail-= parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rf= c2045 ietf-drums misearch multi-isearch
vc-git diff-mode easy-mmo= de warnings tramp-cache thingatpt
company-oddmuse company-keyword= s company-etags company-gtags
company-dabbrev-code company-dabbre= v company-files company-cmake
company-xcode company-clang company= -eclim company-template company-css
company-nxml company-bbdb py-= autopep8 flycheck rx subr-x dash yasnippet
highlight-indentation = flymake company elpy pyvenv elpy-profile
elpy-django s elpy-refac= tor python tramp-sh tramp tramp-compat
tramp-loaddefs trampver sh= ell pcomplete format-spec grep compile files-x
etags xref project= cus-edit cus-start cus-load wid-edit linum
material-theme ein-no= tebook eieio-opt speedbar sb-image ezimage dframe
find-func ein-i= nspector ein-traceback ein-pytools ein-pager
ein-completer ein-su= bpackages ein-notification ein-scratchsheet
ein-worksheet advice = ein-kill-ring ein-cell-output ein-cell-edit
ein-cell ein-output-a= rea xml comint ring ein-kernelinfo ein-kernel
ein-ipdb ein-events= eieio-compat ein-websocket websocket bindat
ansi-color ein-conte= nts-api ein-query request mail-utils url url-proxy
url-privacy ur= l-expand url-methods url-history url-cookie url-domsuf
url-util u= rl-parse auth-source cl-seq eieio eieio-core cl-macs gnus-util
mm= -util help-fns mail-prsvr password-cache url-vars mailcap cl ein-node
=
ein-log ein-core ein-utils json map cc-mode cc-fonts cc-guess cc-menus=
cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ewoc ein-lo= addefs
ein finder-inf paren edmacro kmacro saveplace ido info pac= kage
epg-config seq byte-opt gv bytecomp byte-compile cl-extra he= lp-mode
easymenu cconv cl-loaddefs pcase cl-lib time-date mule-ut= il tooltip
eldoc electric uniquify ediff-hook vc-hooks lisp-float= -type mwheel
ns-win ucs-normalize term/common-win tool-bar dnd fo= ntset image
regexp-opt fringe tabulated-list newcomment elisp-mod= e lisp-mode
prog-mode register page menu-bar rfn-eshadow timer se= lect scroll-bar
mouse jit-lock font-lock syntax facemenu font-cor= e 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 ch= inese charscript case-table epa-hook
jka-cmpr-hook help simple ab= brev minibuffer cl-preloaded nadvice
loaddefs button faces cus-fa= ce macroexp files text-properties overlay
sha1 md5 base64 format = env code-pages mule custom widget
hashtable-print-readable backqu= ote kqueue cocoa ns multi-tty
make-network-process emacs)

Memory information:
((conses 16 425471 23113)
=C2=A0(symbols 48 40207 0)
=C2=A0(miscs 40 902 1134)
=C2=A0(strings 32 85244 13367)
=C2=A0(string-bytes 1 25425= 96)
=C2=A0(vectors 16 61153)
=C2=A0(vector-slots 8 1064= 764 7383)
=C2=A0(floats 8 1067 542)
=C2=A0(intervals 56= 2595 465)
=C2=A0(buffers 976 98))

--f403045f8bce4c2411054c0b9ff0--