Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!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.025 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'python': 0.08; 'rewritten': 0.09; 'wrote:': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'optimizing': 0.16; 'received:209.85.213.174': 0.16; 'received:mail- yx0-f174.google.com': 0.16; 'subject:Early': 0.16; 'pm,': 0.16; 'aug': 0.19; 'header:In-Reply-To:1': 0.22; 'tue,': 0.23; 'code': 0.24; 'sort': 0.28; 'message-id:@mail.gmail.com': 0.28; 'binding': 0.30; 'rather': 0.33; 'to:addr:python-list': 0.34; 'probably': 0.35; 'some': 0.37; 'but': 0.37; 'could': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'two': 0.38; 'case': 0.39; 'to:addr:python.org': 0.39; 'might': 0.39; 'received:209': 0.40; 'where': 0.40; 'minutes': 0.67; 'hand,': 0.76; 'interesting,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=JjlfXAUr04Ji0EasssvCQnKePcDPUeglSjWCcBsuNzc=; b=CVNFSEfCvdLcaGY4gC1S3hNrNRtuVWUJdt1gsWtvQZJBbgIWSGe1vaqAWQjKZmYpRy XYRb2V0DGdNtkit2Bu9ODbNj58HX85msSrcN1DThmgVGTmnZz1cEQPaZCQPSrnN3HV2a QQJ+xhixipJ74MnHF3R40pS9WtaDrMGg5aaew= MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 2 Aug 2011 23:26:01 +0100 Subject: Re: Early binding as an option From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 1312323964 news.xs4all.nl 23969 [2001:888:2000:d::a6]:51720 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:10770 On Tue, Aug 2, 2011 at 11:21 PM, Gelonida N wrote: > On the other hand: It might be interesting, that the early binding would > just take place when python is invoked with -O > This could be an excellent safety catch, but on the other hand, it might destroy all value of the feature - once again, it would be optimizing in the sole case where the code is probably better rewritten in C. Or would this be a sort of "half-way house" - this is where we need more performance, let's spend two minutes tweaking it in Python rather than dropping to C - to get some of the performance gains? ChrisA