Darlan Cavalcante Moreira <darc...@gmail.com> writes: > COmments are inline. > > At Thu, 5 Nov 2009 11:17:39 +0000 (UTC), > andrea Crotti <andrea.crott...@gmail.com> wrote: >> >> I'm with org-mode 6.31a, I was trying to >> get output in the exported files but I never see the output. >> >> So I investigate and for example this >> >> #+BEGIN_SRC python >> import os; os.listdir(os.getcwd()) >> #+END_SRC > > This does not return anything for me either, but > #+BEGIN_SRC python > import os > os.listdir(os.getcwd()) > #+END_SRC > works as expected. This is strange, since "import os; os.listdir(os.getcwd())" > is valid and will work if typed in the python interpreter directly.
This is a limitation of the current implementation of :results value evaluation. For now, while we work out a good solution, semi-colon separated statements on the same line (as well as multiline continuations) should be avoided when using :results value (the default). It does work with :results output: #+BEGIN_SRC python :results output import os; print os.listdir(os.getcwd()) #+END_SRC Thanks for pointing this problem out. Dan _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode