Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pycon': 0.01; 'exercise': 0.04; 'subject:Python': 0.06; 'compiler': 0.07; 'debugging': 0.07; 'exec': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'thats': 0.09; 'python': 0.11; 'wrote': 0.14; 'mostly': 0.14; 'times,': 0.14; 'from:addr:pitrou.net': 0.16; 'from:addr:solipsis': 0.16; 'from:name:antoine pitrou': 0.16; 'message-id:@post.gmane.org': 0.16; 'partly': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'code.': 0.18; 'producing': 0.19; 'properly': 0.19; 'machine': 0.22; 'header:User-Agent:1': 0.23; 'interpret': 0.24; 'least': 0.26; 'developing': 0.27; 'header:X-Complaints-To:1': 0.27; 'tried': 0.27; 'generally': 0.29; "doesn't": 0.30; 'etc.).': 0.31; 'invoke': 0.31; 'subject:end': 0.31; 'writes:': 0.31; '(including': 0.33; 'common': 0.35; 'test': 0.35; 'but': 0.35; 'really': 0.36; 'done': 0.36; "didn't": 0.36; 'charset:us-ascii': 0.36; 'virtual': 0.37; 'implement': 0.38; 'feed': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'no.': 0.61; 'results': 0.69; 'antoine.': 0.84; 'exposing': 0.91; 'these.': 0.91; 'average': 0.93; 'luck': 0.93; 'philip': 0.95; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Antoine Pitrou Subject: Re: Python Front-end to GCC Date: Tue, 22 Oct 2013 08:55:15 +0000 (UTC) References: <4012031f-5334-4be8-a673-e0d8c8917fb2@googlegroups.com> <5a4e0ec9-c977-4a86-83b0-9f4c55a82e37@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 88.163.232.20 (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1382432137 news.xs4all.nl 15982 [2001:888:2000:d::a6]:55695 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:57246 Philip Herron googlemail.com> writes: > > Its interesting a few things come up what about: > > exec and eval. I didn't really have a good answer for this at my talk at PYCon IE 2013 but i am going to say no. I am > not going to implement these. Partly because eval and exec at least to me are mostly from developing > interpreters as a debugging exercise so the test doesn't have to invoke the program properly and feed in > strings to interpret at least thats what i have done in the past with an virtual machine i wrote before gccpy. If you don't implement exec() and eval() then people won't be able to use namedtuples, which are a common datatype factory. As for the rest: well, good luck writing an AOT compiler producing interesting results on average *pure* Python code. It's already been tried a number of times, and has generally failed. Cython mitigates the issue by exposing a superset of Python (including type hints, etc.). Regards Antoine.