From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott May Subject: [babel] Possible bug: (mis)handling tuples for :return value in Python [7.4 (release_7.4.153.ga0b8)] Date: Thu, 24 Feb 2011 06:22:46 -0800 (PST) Message-ID: <359245.93455.qm@web65609.mail.ac4.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=41934 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Psc5h-0004SG-Ko for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 09:22:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Psc5g-0008WO-A3 for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 09:22:49 -0500 Received: from nm22.bullet.mail.ac4.yahoo.com ([98.139.52.219]:24780) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Psc5g-0008WD-3i for emacs-orgmode@gnu.org; Thu, 24 Feb 2011 09:22:48 -0500 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 I do not think that =org-babel-read= is correctly handling Python tuples that are returned from source blocks. If I execute the following source block: #+begin_src python :results value return (1,2) #+end_src I get the following error message: : Symbol's function definition is void: 1\, The Python output for this source block is =(1,2)=, which =org-babel-read= interprets as lisp and tries to eval. I can work around the problem using either a Python list: #+begin_src python :results value return [1,2] #+end_src or by using =:results output= #+begin_src python :results output :session (1,2) #+end_src Regards, Scott Emacs : GNU Emacs 23.2.1 (i686-pc-linux-gnu, GTK+ Version 2.21.6) of 2010-09-01 on rhenium, modified by Debian Package: Org-mode version 7.4 (release_7.4.529.gb23d)