From mboxrd@z Thu Jan 1 00:00:00 1970 From: Seth Burleigh Subject: [Babel][BUG] Executing python code fails due to indentation error Date: Mon, 6 Sep 2010 18:06:49 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0546787600==" Return-path: Received: from [140.186.70.92] (port=49223 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oskm7-0005ic-KX for Emacs-orgmode@gnu.org; Mon, 06 Sep 2010 19:06:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oskm2-000408-R1 for Emacs-orgmode@gnu.org; Mon, 06 Sep 2010 19:06:55 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:41908) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oskm2-0003zy-OH for Emacs-orgmode@gnu.org; Mon, 06 Sep 2010 19:06:50 -0400 Received: by iwn33 with SMTP id 33so6827533iwn.0 for ; Mon, 06 Sep 2010 16:06:49 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode@gnu.org --===============0546787600== Content-Type: multipart/alternative; boundary=001636e90310d88e3f048f9f556c --001636e90310d88e3f048f9f556c Content-Type: text/plain; charset=ISO-8859-1 #+begin_src python def add(a,b): return a+b def sub(a,b): return a-b #+end_src Fails to execute due to 'unexpected indentation' in general, this is a problem for copy/pasting into any emacs python shell, it wont work. --001636e90310d88e3f048f9f556c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable #+begin_src python
def add(a,b):
=A0=A0 return a+b
= def sub(a,b):
=A0=A0 return a-b
#+end_src
Fails to execute due to 'unexpected indentation' in gen= eral, this is a problem for copy/pasting into any emacs python shell, it wo= nt work.=A0
--001636e90310d88e3f048f9f556c-- --===============0546787600== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0546787600==--