From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: Mixing Python2 and Python3 blocks in one file Date: Sun, 8 May 2016 10:31:03 +0200 Message-ID: <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]:47793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azK7Z-0000D8-Tn for emacs-orgmode@gnu.org; Sun, 08 May 2016 04:31:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azK7V-0007OC-LS for emacs-orgmode@gnu.org; Sun, 08 May 2016 04:31:24 -0400 Received: from plane.gmane.org ([80.91.229.3]:45462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azK7V-0007Nx-AP for emacs-orgmode@gnu.org; Sun, 08 May 2016 04:31:21 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1azK7P-0007KZ-Lm for emacs-orgmode@gnu.org; Sun, 08 May 2016 10:31:15 +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 10:31:15 +0200 Received: from news1142 by friends.grml.info with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 08 May 2016 10:31:15 +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 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: http://thread.gmane.org/gmane.emacs.orgmode/47867 ... file-variables to choose interpretor http://thread.gmane.org/gmane.emacs.orgmode/47867 ... 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