Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'syntax': 0.11; 'from:addr:behnel.de': 0.16; 'from:addr:stefan_ml': 0.16; 'from:name:stefan behnel': 0.16; 'redone': 0.16; 'subject:Early': 0.16; 'header:In-Reply-To:1': 0.22; 'thus': 0.23; 'function': 0.26; 'compile': 0.29; 'explicitly': 0.29; 'stefan': 0.29; 'chris': 0.32; 'to:addr:python-list': 0.34; 'header:X-Complaints- To:1': 0.34; 'header:User-Agent:1': 0.34; 'decide': 0.34; 'that,': 0.35; 'unless': 0.37; 'received:org': 0.38; 'subject:: ': 0.38; 'cases,': 0.38; 'header:Mime-Version:1': 0.39; 'to:addr:python.org': 0.39; 'benefit': 0.66; 'favour': 0.73; 'valued': 0.76; 'semantics,': 0.84; 'received:93': 0.86 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Stefan Behnel Subject: Re: Early binding as an option Date: Wed, 03 Aug 2011 11:33:21 +0200 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: ppp-93-104-28-169.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Thunderbird/3.1.11 In-Reply-To: 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1312364022 news.xs4all.nl 23842 [2001:888:2000:d::a6]:34181 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:10793 Chris Angelico, 03.08.2011 00:08: > So... Would this potentially produce wrong results? Would it be of any > use, or would its benefit be only valued in times when the whole > function needs to be redone in C? Note that, in most cases, you do not need to "redo the whole function in C". You can just use Cython to compile it, thus leaving it in Python syntax and keeping up Python semantics, unless you decide to explicitly divert from them in favour of optimisations. Stefan