Subject: Org-mode python output not working

From: Michael Wu <[email-masked]>
Date: Sat, 7 Sep 2019 13:19:25 -0400

In the following block:

#+BEGIN_SRC python :results value :session
def f():
    return 5
f()
#+END_SRC

It gives the message

"Code block returned no value"

when trying to run it. This is clearly not intended behavior, as

#+BEGIN_SRC python :results value :session
def f():
    return 5
f()
10
#+END_SRC

#+RESULTS:
: 10

works perfectly fine. Does anyone else have this issue?