[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Mixing Python2 and Python3 blocks in one file

From: Karl Voit
Subject: [O] Mixing Python2 and Python3 blocks in one file
Date: Sun, 8 May 2016 10:31:03 +0200
User-agent: slrn/pre1.0.0-18 (Linux)


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:

... file-variables to choose interpretor

... 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]