all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Org Babel says 1 + 1 in Python is None
@ 2024-09-06 13:33 Rudolf Adamkovič
  2024-09-07  8:12 ` Dr. Arne Babenhauserheide
  2024-09-07  9:27 ` Sébastien Gendre
  0 siblings, 2 replies; 11+ messages in thread
From: Rudolf Adamkovič @ 2024-09-06 13:33 UTC (permalink / raw)
  To: emacs-orgmode

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č <rudolf@adamkovic.org> [he/him]
http://adamkovic.org


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-10-28 22:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-06 13:33 Org Babel says 1 + 1 in Python is None Rudolf Adamkovič
2024-09-07  8:12 ` Dr. Arne Babenhauserheide
2024-10-13 11:41   ` Ihor Radchenko
2024-10-20  7:08     ` Jack Kamm
2024-10-20  9:39       ` Ihor Radchenko
2024-10-21  6:00         ` Jack Kamm
2024-10-21 18:03           ` Ihor Radchenko
2024-10-22  2:43             ` Jack Kamm
2024-10-23 17:13               ` Ihor Radchenko
2024-09-07  9:27 ` Sébastien Gendre
2024-10-28 22:25   ` Rudolf Adamkovič

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.