From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: Re: run-python hangs for some versions Date: Tue, 19 Jun 2007 10:06:14 -0400 Message-ID: References: <20070619075147.GA4253@mouth.upl.cs.wisc.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182268784 17040 80.91.229.12 (19 Jun 2007 15:59:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2007 15:59:44 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Adam Hupp Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 19 17:59:43 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I0g7I-0001c3-PT for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jun 2007 17:59:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0g7I-00087o-H2 for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Jun 2007 11:59:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0g7A-00080g-Q6 for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2007 11:59:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0g78-0007xX-MN for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2007 11:59:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0g78-0007wv-Eb for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2007 11:59:30 -0400 Original-Received: from toq12.bellnexxia.net ([209.226.175.119] helo=toq12-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I0g78-0007Bv-16 for bug-gnu-emacs@gnu.org; Tue, 19 Jun 2007 11:59:30 -0400 Original-Received: from ceviche.home ([70.55.143.156]) by tomts20-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070619140614.LONU1637.tomts20-srv.bellnexxia.net@ceviche.home> for ; Tue, 19 Jun 2007 10:06:14 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 1EEF6B4B9B; Tue, 19 Jun 2007 10:06:13 -0400 (EDT) In-Reply-To: <20070619075147.GA4253@mouth.upl.cs.wisc.edu> (Adam Hupp's message of "Tue\, 19 Jun 2007 02\:51\:47 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15958 Archived-At: >> > 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