From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Bug: babel python indentations fail in sessions [8.3.1] Date: Wed, 16 Sep 2015 11:28:01 -0400 Message-ID: <87si6ecrjy.fsf@kyleam.com> References: <87fv2e2znt.fsf@gentoo.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34678) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcEd7-0000yW-7F for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 11:28:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcEd1-0006Ya-8n for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 11:28:17 -0400 Received: from mail-qg0-f43.google.com ([209.85.192.43]:33116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcEd1-0006YT-5y for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 11:28:11 -0400 Received: by qgev79 with SMTP id v79so174031942qge.0 for ; Wed, 16 Sep 2015 08:28:10 -0700 (PDT) In-Reply-To: <87fv2e2znt.fsf@gentoo.org> (Benda Xu's message of "Wed, 16 Sep 2015 23:43:02 +0900") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Benda Xu Cc: emacs-orgmode@gnu.org Hello, Benda Xu writes: > Dear All, > > The following code block fails: > > #+BEGIN_SRC python :results output :session > for i in (1, 2): > pass > print "hey" > #+END_SRC > > > #+RESULTS: > : > : ... ... File "", line 3 > : print "hey" > : ^ > : SyntaxError: invalid syntax [...] > Any ideas? I summarized my understanding of the issues with python sessions here (the issue you report is #3): http://thread.gmane.org/gmane.emacs.orgmode/95980/focus=96076 It's on my TODO list to revisit. -- Kyle