[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [babel] Possible bug: (mis)handling tuples for :return val
From: |
Eric Schulte |
Subject: |
Re: [Orgmode] [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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Scott May <address@hidden> 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