Soapy Smith <soapy-sm...@comcast.net> writes: > 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? >
You should only use "return" like that in a python code block when you have ":results value". > > I am using org 8.2.4. > > Regards, > Greg > > -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D