emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Python Code Block error with header option :results output


From: Soapy Smith
Subject: [O] Python Code Block error with header option :results output
Date: Fri, 31 Jan 2014 16:24:17 -0500

Hello-

I am not a user of Python (yet).  During a comparison of code block
behavior between Clojure and Python, I discovered a possible Python
error.

Here is the code block:

#+begin_src python :results output
 a = (1, 2, 3, 4)
 return a
#+end_src

The evaluation of this block results in this error:

  File "<stdin>", line 2
SyntaxError: 'return' outside function

Could someone please comment if this is expected Python behavior?

I am using org 8.2.4.

Regards,
Greg




reply via email to

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