From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Beffara Subject: Re: Babel, Python and UTF-8 Date: Fri, 03 Dec 2010 11:27:01 +0100 Message-ID: References: <87fwuhas6t.fsf@gmail.com> <80bp54a693.fsf@missioncriticalit.com> <87hbew7yvi.fsf@gmail.com> <80k4jsszq4.fsf@missioncriticalit.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=60958 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POSr9-0006Hc-Uf for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 05:27:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POSr8-0006Xv-PM for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 05:27:11 -0500 Received: from lo.gmane.org ([80.91.229.12]:48898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POSr8-0006XV-Dj for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 05:27:10 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1POSr7-0003aK-5s for emacs-orgmode@gnu.org; Fri, 03 Dec 2010 11:27:09 +0100 Received: from edgewall1.unige.ch ([129.194.3.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Dec 2010 11:27:09 +0100 Received: from vbeffara by edgewall1.unige.ch with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Dec 2010 11:27:09 +0100 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 Hi, "preamble" sounds fine (and it would be excellent to allow for a code block as a preamble, instead of a string in the header or as an alternative, because preambles once they are allowed tend to grow uncontrollably ;->) >> The :shebang header argument is only used for tangling, not during >> evaluation, however if you ever needed to tangle python code blocks with >> non-ASCII encodings this would be the appropriate solution. > > Sorry, reading this after the other post... > > But, does it still make sense to make that distinction: > > - some sort of preamble only for tangling? > - a preamble for evaluation (and tangling)? One naive question : why is the code path different for tangling and evaluation ? One would think that a natural way for evaluation would be to tangle the current block (plus included noweb stuff etc) into a temporary file and eval that file ... and that would enable shebang for evaluation as well. There must be something I am missing here. /v