From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Monib Ahmed <MonibAhmed@gmail.com>
Cc: 26326@debbugs.gnu.org
Subject: bug#26326: 25.1; "import codecs, os; ..." Weird output in python shell Mac OS X
Date: Fri, 31 Mar 2017 15:53:57 -0400 [thread overview]
Message-ID: <CAM-tV-9Es_01TeBO2mdcZxD5z3OcAHoMpYNqsqATij15Mac7Gg@mail.gmail.com> (raw)
In-Reply-To: <CA+eEu87htdodO2BsADrZ9kcTPuBHPU-fT54jNk_V9TTu-N9VGA@mail.gmail.com>
merge 25753 26326
quit
On Fri, Mar 31, 2017 at 3:14 PM, Monib Ahmed <MonibAhmed@gmail.com> wrote:
>
> 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?
Perhaps you can figure out how to make Emacs' python code (see
__PYTHON_EL_native_completion_setup() in python.el) work properly with
a libedit based readline?
Otherwise, you can work around it by installing a GNU readline based
readline module:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25753#74
prev parent reply other threads:[~2017-03-31 19:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-31 19:14 bug#26326: 25.1; "import codecs, os; ..." Weird output in python shell Mac OS X Monib Ahmed
2017-03-31 19:53 ` Noam Postavsky [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAM-tV-9Es_01TeBO2mdcZxD5z3OcAHoMpYNqsqATij15Mac7Gg@mail.gmail.com \
--to=npostavs@users.sourceforge.net \
--cc=26326@debbugs.gnu.org \
--cc=MonibAhmed@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).