#+begin_src python :session :results output

With org-babel-execute-src-block command, the result is:

: __PYTHON_EL_eval("try:\n    with open('/var/folders/hh/lnftkrwn1tv9b63ptnphj_gm0000gp/T/babel-ww4KL0/python-AICyg8') as __org_babel_python_tmpfile:\n        exec(compile(__org_babel_python_tmpfile.read(), __org_babel_python_tmpfile.name, 'exec'))\nexcept:\n    raise\nfinally:\n    print('

not "yes".

:results value is behaved as expected.


GNU Emacs 28.1 (build 1, x86_64-apple-darwin19.6.0, Carbon Version 162 AppKit 1894.6)
 of 2022-04-28
org mode 9.5.3
  • Which command was used? M-x org-babel-execute-src-block RET prints "yes" with GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 2.24.32, cairo version 1.16.0) Jun 19 at 6:10
  • @AndreasRöhler org-babel-execute-src-block
    – Tokubara
    Jun 19 at 8:17
  • Might be a bug. Please consider filing your question a <emacs-orgmode@gnu.org> Jun 20 at 9:19


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.