Path: csiph.com!goblin3!goblin1!goblin.stu.neva.ru!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'cc:addr:python-list': 0.09; 'modules.': 0.09; 'subject:Why': 0.09; 'subject:both': 0.09; 'python': 0.10; 'subject:not': 0.11; 'wed,': 0.15; '(but': 0.15; 'file,': 0.15; 'java,': 0.15; '.py': 0.16; 'executable.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.16; "wouldn't": 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'machine': 0.21; 'sep': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'turns': 0.27; 'notation': 0.29; 'url:peps': 0.29; 'anyone': 0.32; 'run': 0.33; 'problem': 0.33; 'url:python': 0.33; 'jump': 0.33; 'similar': 0.33; 'file': 0.34; 'gives': 0.35; 'received:google.com': 0.35; 'url:dev': 0.35; 'supports': 0.35; 'url:org': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'files': 0.38; 'still': 0.40; 'some': 0.40; 'your': 0.60; 'making': 0.62; 'benefit': 0.66; 'fact,': 0.67; 'again!': 0.84; 'chrisa': 0.84; 'to:none': 0.91; 'execution,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=W2zPjbvbVBXJkK77TD8qMfcwsTrlsbImrFdo5Kuda3k=; b=eojqTrp/u3cL6ELkgWd3DIClAW3ncY14iYKQIFUW48ussp0Ry7TzlOqMD1uyWCfnoH ZeVEH9leuZTN47o/v+Go3QWE8hAGQ9dTTYIkHZB4B9T53PopK9L91m2LjpRw/C98+e3b 5QYZmK3CpCPeel5iYxqUL34x1MDZgOvQMxE4JPybZG1x+qmZaiMP8Adg68LC3DhrQ4cK 9uxBK7Bu7LP9Qlop7g+TsS0yGg3HYHGfwDiBEpLb3jj5N9q0g1HabZeT+V7aCPR4qGdV ojU+1r54Uh3m9n586nEcVCxze+rFlb50izQVJd33CeAxT6illuya1LvwdCO/lLVgF5gn XFDw== MIME-Version: 1.0 X-Received: by 10.107.134.146 with SMTP id q18mr29532046ioi.31.1441127166870; Tue, 01 Sep 2015 10:06:06 -0700 (PDT) In-Reply-To: <87io7uun4s.fsf@elektro.pacujo.net> References: <3e541d13-bc86-456c-8590-4ffd1af9cfd0@googlegroups.com> <87twrftw4w.fsf@elektro.pacujo.net> <55e5c220$0$1641$c3e8da3$5496439d@news.astraweb.com> <87io7uun4s.fsf@elektro.pacujo.net> Date: Wed, 2 Sep 2015 03:06:06 +1000 Subject: Re: Why Python is not both an interpreter and a compiler? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1441127176 news.xs4all.nl 23860 [2001:888:2000:d::a6]:46072 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:95837 On Wed, Sep 2, 2015 at 2:20 AM, Marko Rauhamaa wrote: > In fact, the shebang notation turns any single .py file into such an > executable. The problem is if you break your program into modules. Java, > of course, solved a similar problem with .jar files (but still wouldn't > jump over the final hurdle of making the .jar files executable). The time machine strikes again! Python supports zip file execution, which gives you the same benefit as a .jar file, plus you can slap on a shebang and run the whole thing! Anyone for some pyzza? https://www.python.org/dev/peps/pep-0441/ ChrisA