|
| From: | Andreas Röhler |
| Subject: | Re: Bug: org-babel python with :results value sends function definition with a statement after a for loop to the shell incorrectly [9.3.6 (9.3.6-elpa @ /home/username/.emacs.d/elpa/org-9.3.6/)] |
| Date: | Wed, 1 Jul 2020 20:48:20 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux i686; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 |
On 01.07.20 18:55, Philip Blagoveschensky wrote:
#+begin_src python :session bug_report def foobar(): for i in range(5): pass print "hello world" foobar()#+end_src
Works here like this:
#+begin_src python :results output
def foobar():
for i in range(5):
pass
print("hello world")
foobar()
#+end_src
#+RESULTS:
: hello world
GNU Emacs 28.0.50 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5,
cairo version 1.14.0) of 2020-06-10
| [Prev in Thread] | Current Thread | [Next in Thread] |