From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benda Xu Subject: Babel python regression org-mode-8 (Was: Bug: babel python indentations fail in sessions [8.3.1]) Date: Thu, 17 Sep 2015 12:09:35 +0900 Message-ID: <87fv2doi6o.fsf_-_@gentoo.org> References: <87fv2e2znt.fsf@gentoo.org> <87si6ecrjy.fsf@kyleam.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcPZA-0002wm-6Z for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 23:08:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcPZ5-0006bQ-6r for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 23:08:56 -0400 Received: from smtp.gentoo.org ([140.211.166.183]:35748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcPZ5-0006bF-0j for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 23:08:51 -0400 In-Reply-To: <87si6ecrjy.fsf@kyleam.com> (Kyle Meyer's message of "Wed, 16 Sep 2015 11:28:01 -0400") 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: emacs-orgmode@gnu.org Cc: Dan Davison , Eric Schulte Hi Kyle, Kyle Meyer writes: > Benda Xu writes: >> >> 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. Thanks for the pointer! Interesting. @Eric, @Dan, what's your insight for http://thread.gmane.org/gmane.emacs.orgmode/95980/focus=96076 Cheers, Benda