Today, I decided to start using Python in Org.

(1) I read in "WORG":

  :results {output, value}: [...] Value results are the value of the
  last expression evaluated in the code block. Value mode is the default
  (as with other languages).

(2) So, I try it, and get:

  src_python{1 + 1} {{{results(=None=)}}}

I expected this to be 2.

Questions:

- Who is correct: (1) the documentation or (2) the implementation?
- If (2) is correct, do I have to write `return' every time?

Rudy
-- 
"Mathematics takes us still further from what is human into the region
of absolute necessity, to which not only the actual world, but every
possible world, must conform."  --- Bertrand Russell, 1902

Rudolf Adamkovič <rud...@adamkovic.org> [he/him]
http://adamkovic.org

Reply via email to