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

2014-02-01 Thread Soapy Smith
On Sat, 2014-02-01 at 07:56 +0100, Christian Moe wrote: > > You should only use "return" like that in a python code block when you > > have ":results value". > > To expand briefly on that (since this can be perplexing): > > The need to use `return' at all when returning the value is a special >

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

2014-01-31 Thread Christian Moe
Eric Schulte writes: > Soapy Smith 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,

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

2014-01-31 Thread Eric Schulte
Soapy Smith 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 > > Th

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

2014-01-31 Thread Ahmadou Dicko
I'm not a Python expert too but I don't that return statement can be used as is on the fly. So, yes is the expected behavior of Python Try instead #+begin_src python :results output a = (1, 2, 3, 4) print(a) #+end_src #+RESULTS: : (1, 2, 3, 4) On Fri, Jan 31, 2014 at 9:24 PM, Soapy Smith

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

2014-01-31 Thread Soapy Smith
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 err