From mboxrd@z Thu Jan 1 00:00:00 1970 From: Herbert Sitz Subject: Re: org-babel -- Improper syntax error in session mode? Date: Mon, 20 Jun 2011 02:12:32 +0000 (UTC) Message-ID: References: <87k4chwgpa.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYTyo-0004cb-38 for emacs-orgmode@gnu.org; Sun, 19 Jun 2011 22:12:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QYTyn-0005a4-6S for emacs-orgmode@gnu.org; Sun, 19 Jun 2011 22:12:46 -0400 Received: from lo.gmane.org ([80.91.229.12]:46182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYTyn-0005Zy-08 for emacs-orgmode@gnu.org; Sun, 19 Jun 2011 22:12:45 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QYTyl-0004Lj-CU for emacs-orgmode@gnu.org; Mon, 20 Jun 2011 04:12:43 +0200 Received: from c-24-22-131-140.hsd1.wa.comcast.net ([24.22.131.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jun 2011 04:12:43 +0200 Received: from hsitz by c-24-22-131-140.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jun 2011 04:12:43 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric Schulte gmail.com> writes: > I can confirm that I see the same behavior. Also, if I manually type > the body of the code block into the session I get the same error output > from Python, so I don't believe this is due to a problem with Babel. > It appears the problem is that the python session is interactive and is built to emit output after each Python "block" (e.g., the 'for' block), before another "block" of Python is entered. If this is the way it's designed then it seems to me that it's Babel's obligation to feed the Python blocks to the Python session as required and then assemble the output pieces as appropriate. Or am I missing something? -- Herb