From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] Possible bug: (mis)handling tuples for :return value in Python [7.4 (release_7.4.153.ga0b8)] Date: Sun, 27 Feb 2011 14:30:15 -0700 Message-ID: <87pqqd88t4.fsf@gmail.com> References: <359245.93455.qm@web65609.mail.ac4.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=32980 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtoCB-0006yA-Q9 for emacs-orgmode@gnu.org; Sun, 27 Feb 2011 16:30:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtoC7-0000od-9d for emacs-orgmode@gnu.org; Sun, 27 Feb 2011 16:30:27 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:38228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtoC7-0000oT-6W for emacs-orgmode@gnu.org; Sun, 27 Feb 2011 16:30:23 -0500 Received: by iyf13 with SMTP id 13so3165533iyf.0 for ; Sun, 27 Feb 2011 13:30:22 -0800 (PST) In-Reply-To: <359245.93455.qm@web65609.mail.ac4.yahoo.com> (Scott May's message of "Thu, 24 Feb 2011 06:22:46 -0800 (PST)") 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: Scott May Cc: emacs-orgmode@gnu.org Scott May writes: > 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 > Hi Scott, This issue has come up a couple of times recently. I just pushed up a fix. Please let me know if you run into any further issues. Thanks -- Eric