GNU bug report logs - #17370
python-shell-internal-send-string can hang if you change your python prompt

Previous Next

Package: emacs;

Reported by: Andy Moreton <andrewjmoreton <at> gmail.com>

Date: Tue, 29 Apr 2014 12:13:01 UTC

Severity: normal

Found in versions 24.3, 24.3.90

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

Full log


Message #27 received at 17370 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Andy Moreton <andrewjmoreton <at> gmail.com>
Cc: 17370 <at> debbugs.gnu.org, Fabian Ezequiel Gallina <fabian <at> anue.biz>
Subject: Re: bug#17370: 24.3.90;
 user cannot disable inferior python run from python-mode when file is
 visited
Date: Fri, 02 May 2014 16:56:16 -0400
Glenn Morris wrote:

> (python-shell-internal-send-string "import sys;print ('\\n'.join(sys.path))")
>
> It is this that hangs (in python-shell-send-string-no-output AFAICS).
> It also hangs in Emacs 24.3.
>
> emacs -Q -l python

It seems that for me the hang is because I have customized my python
prompt (sys.ps1 = 'py> ' in ~/.pythonrc.py).

I have to set python-shell-prompt-regexp to match to avoid a hang as
python.el thinks it needs to keep waiting for process output.

Can python.el be made more robust in this regard?

Otherwise there needs to be a big fat warning attached to
python-shell-prompt-regexp.




This bug report was last modified 10 years and 305 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.