From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Re: Mixing Python2 and Python3 blocks in one file Date: Sun, 8 May 2016 17:13:13 +0200 Message-ID: <2016-05-08T17-12-35@devnull.Karl-Voit.at> References: <2016-05-08T10-21-00@devnull.Karl-Voit.at> Reply-To: Karl Voit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azQOm-0002iV-DO for emacs-orgmode@gnu.org; Sun, 08 May 2016 11:13:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azQOi-0000O8-3U for emacs-orgmode@gnu.org; Sun, 08 May 2016 11:13:35 -0400 Received: from plane.gmane.org ([80.91.229.3]:40880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azQOh-0000Ly-Nd for emacs-orgmode@gnu.org; Sun, 08 May 2016 11:13:32 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1azQOe-0004Yl-4T for emacs-orgmode@gnu.org; Sun, 08 May 2016 17:13:28 +0200 Received: from friends.grml.info ([136.243.234.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 May 2016 17:13:28 +0200 Received: from news1142 by friends.grml.info with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 May 2016 17:13:28 +0200 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" To: emacs-orgmode@gnu.org * Karl Voit wrote: > Hi! > > Python2 and Python3 are two different languages. Unfortunately, > Org-mode only uses ~#+BEGIN_SRC python~ for both and uses > python-shell-interpreter to choose/switch the compiler. > > Shouldn't Org-mode introduce ~#+BEGIN_SRC python2~ and ~#+BEGIN_SRC > python3~ to solve this issue in a clean way? > > ~#+BEGIN_SRC python~ can still default to python2. > > > I only found those sources/solutions: Correct links: http://article.gmane.org/gmane.emacs.orgmode/47878 > ... file-variables to choose interpretor http://article.gmane.org/gmane.emacs.orgmode/47955 > ... workaround with #+srcname (I don't get yet) -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github