From mboxrd@z Thu Jan 1 00:00:00 1970 From: Herbert Sitz Subject: org-babel -- Improper syntax error in session mode? Date: Sun, 19 Jun 2011 21:54:07 +0000 (UTC) Message-ID: 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]:36093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYPwl-0007Z3-Go for emacs-orgmode@gnu.org; Sun, 19 Jun 2011 17:54:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QYPwj-0005YW-V9 for emacs-orgmode@gnu.org; Sun, 19 Jun 2011 17:54:23 -0400 Received: from lo.gmane.org ([80.91.229.12]:54923) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QYPwj-0005YH-K5 for emacs-orgmode@gnu.org; Sun, 19 Jun 2011 17:54:21 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QYPwg-0003h0-I4 for emacs-orgmode@gnu.org; Sun, 19 Jun 2011 23:54:18 +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 ; Sun, 19 Jun 2011 23:54:18 +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 ; Sun, 19 Jun 2011 23:54:18 +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 I have a code block that evaluates fine in non-session mode but which gives syntax error in session mode. Since it works fine in non-session mode I assume this is a bug?: ---------------------------- #+begin_src python :results output :session mypy x = 1 for i in range(1,5): x = x + i print x print "Did it work?" #+end_src #+results: : File "", line 4 : print "Did it work?" : ^ : SyntaxError: invalid syntax --------------------------------