1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-24 07:20:29 +00:00

org-manual.org: Remove outdated information about ob-python results

* doc/org-manual.org (Results of Evaluation): Remove incorrect
information about how python session blocks extract results (outdated
since cc89d5523), and about how python session output differs from
non-session output (the examples no longer differ since b506bb68d).
This commit is contained in:
Jack Kamm 2020-02-22 09:37:33 -08:00
parent 42ec2462a0
commit 194a85d689

View File

@ -17287,8 +17287,7 @@ they are mutually exclusive.
interactive Emacs inferior process. Org gets the value from the
source code interpreter's last statement output. Org has to use
language-specific methods to obtain the value. For example, from
the variable ~_~ in Python and Ruby, and the value of ~.Last.value~
in R.
the variable ~_~ in Ruby, and the value of ~.Last.value~ in R.
- =output= ::
@ -17300,41 +17299,6 @@ they are mutually exclusive.
as an interactive Emacs inferior process. Org concatenates any text
output from the interpreter and returns the collection as a result.
Note that this collection is not the same as that would be collected
from stdout of a non-interactive interpreter running as an external
process. Compare for example these two blocks:
#+begin_example
,#+BEGIN_SRC python :results output
print "hello"
2
print "bye"
,#+END_SRC
,#+RESULTS:
: hello
: bye
#+end_example
In the above non-session mode, the "2" is not printed; so it does
not appear in results.
#+begin_example
,#+BEGIN_SRC python :results output :session
print "hello"
2
print "bye"
,#+END_SRC
,#+RESULTS:
: hello
: 2
: bye
#+end_example
In the above session, the interactive interpreter receives and
prints "2". Results show that.
*** Type
:PROPERTIES:
:UNNUMBERED: notoc