bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run-python hangs for some versions


From: Adam Hupp
Subject: Re: run-python hangs for some versions
Date: Tue, 19 Jun 2007 02:51:47 -0500
User-agent: Mutt/1.5.11

On Tue, Jun 19, 2007 at 01:52:04AM -0400, Stefan Monnier wrote:
> > This works correctly with python 2.4 and 2.5, but hangs with 2.2 and
> > 3.0 (from svn).  strace reports that emacs is running the following
> > syscall over and over again:
> 
> > select(5, [3 4], NULL, NULL, {4, 999110}) = 0 (Timeout)
> 
> > This does not happen with the old python-mode in emacs 21.
> 
> Most likely it's stuck in the
> 
>   (python-send-receive "import emacs; print '_emacs_out ()'")

Thanks for the pointer.  It looks like the problem is that Python 3
has some syntactic changes that break both emacs.py and the above
statement.  With updates for the syntax changes (print and eval are
now functions) it does work fine.

I'll try to come up with a fix that works across versions.  

-Adam




reply via email to

[Prev in Thread] Current Thread [Next in Thread]