From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: [BUG] org-babel :session breaks returning things with python? Date: Thu, 04 Nov 2010 10:59:25 -0500 Message-ID: <87hbfxt6zm.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=33236 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PE2DR-000237-Ii for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 11:59:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PE2DQ-0006h3-7Q for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 11:59:05 -0400 Received: from li28-75.members.linode.com ([75.127.72.75]:45873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PE2DQ-0006gt-1n for emacs-orgmode@gnu.org; Thu, 04 Nov 2010 11:59:04 -0400 Received: from grumps (localhost [127.0.0.1]) by li28-75.members.linode.com (Postfix) with ESMTP id 618B0C90E for ; Thu, 4 Nov 2010 15:59:02 +0000 (UTC) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, In the latest org master, I get this issue: #+BEGIN_SRC python return 33 #+END_SRC #+results: : 33 #+BEGIN_SRC python :session return 33 #+END_SRC #+results: : org_babel_python_eoe Not really sure what's happening, but I'm seeing inside of *Python*: : >>> return 33 : : open('/tmp/babel-283184et/python-28318XQy', 'w').write(str(_)) : : : 'org_babel_python_eoe' : File "", line 1 : SyntaxError: 'return' outside function : >>> >>> >>> Traceback (most recent call last): : File "", line 1, in : NameError: name '_' is not defined : >>> >>> >>> 'org_babel_python_eoe' : >>>