Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed7.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.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'executable': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Why': 0.09; 'subject:both': 0.09; 'python': 0.10; 'subject:not': 0.11; 'useful,': 0.13; "hasn't": 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'refers': 0.18; 'people,': 0.20; 'machine': 0.21; 'code,': 0.23; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'host': 0.28; 'regular': 0.29; 'code': 0.30; 'compiled': 0.32; 'generally': 0.32; "i'll": 0.33; 'file': 0.34; 'quite': 0.35; 'step': 0.36; 'but': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'received:org': 0.37; 'doing': 0.38; 'virtual': 0.38; 'why': 0.39; 'easily': 0.39; 'to:addr:python.org': 0.40; 'programs': 0.62; 'above,': 0.63; 'useful.': 0.72; '\xe2\x80\x93': 0.72; '_o__)': 0.84; 'cpu.': 0.84; 'received:125': 0.84; '\xe2\x80\x9csome': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Re: Why Python is not both an interpreter and a compiler? Date: Tue, 01 Sep 2015 09:15:09 +1000 References: <3e541d13-bc86-456c-8590-4ffd1af9cfd0@googlegroups.com> <87twrftw4w.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:xxh4c0sQfC/t9VD9qJPaSqpkMCs= 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1441062918 news.xs4all.nl 23733 [2001:888:2000:d::a6]:48327 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:95801 Mahan Marwat writes: > > Python programs *could* easily be compiled the same way, but it generally > > hasn't been considered all that useful. > > If it hasn't been considered all that useful, then why the tools like > cx_freeze, pytoexe are doing very hard! Thay don't compile to machine code for the host CPU. That's the step that “compiled the same way” refers to above, as not having been considered all that useful. What those tools do – compile to Python virtual machine code, and then bundle that machine code with the virtual machine into a single executable file – is quite useful. -- \ “Some people, when confronted with a problem, think ‘I know, | `\ I'll use regular expressions’. Now they have two problems.” | _o__) —Jamie Zawinski, in alt.religion.emacs | Ben Finney