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: Stefan Monnier
Subject: Re: run-python hangs for some versions
Date: Tue, 19 Jun 2007 10:06:14 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

>> > 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.  

That would be very helpful, thank you.


        Stefan




reply via email to

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