emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <9cce4a8a-d151-871a-9f42-ee21a2cd19dc@easy-emacs.de> (raw)
In-Reply-To: <294a8a24-c899-7fc5-5c3d-03fe7b487292@crabman.me>


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




  reply	other threads:[~2020-07-01 18:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-01 16:55 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/)] Philip Blagoveschensky
2020-07-01 18:48 ` Andreas Röhler [this message]
2020-07-01 19:05 ` ian martins
  -- strict thread matches above, loose matches on Subject: below --
2020-06-30 11:09 Philip Blagoveschensky
2020-07-06 12:57 ` ian martins
2020-07-06 19:18   ` Philip Blagoveschensky
2020-07-07 11:31     ` ian martins
2020-07-19 15:33       ` Jack Kamm
2020-10-10 23:57         ` Jack Kamm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9cce4a8a-d151-871a-9f42-ee21a2cd19dc@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).