emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [babel] Possible bug: (mis)handling tuples for :return value i


From: Scott May
Subject: [Orgmode] [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)

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)



      



reply via email to

[Prev in Thread] Current Thread [Next in Thread]