Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'kelly': 0.09; 'pm,': 0.10; 'def': 0.12; 'wrote:': 0.14; 'f()': 0.16; 'functools': 0.16; 'subject:GIL': 0.16; 'subject:alternative': 0.16; 'tue,': 0.17; 'header:In-Reply-To:1': 0.21; 'received:209.85.161.46': 0.23; 'received:mail-fx0-f46.google.com': 0.23; 'received:209.85.161': 0.26; 'message-id:@mail.gmail.com': 0.28; 'import': 0.29; 'to:addr :python-list': 0.33; '8bit%:8': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.37; 'partial': 0.37; 'subject:: ': 0.38; 'should': 0.39; 'received:209': 0.39; 'to:addr:python.org': 0.39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=7WOvJV9vOh88dT8GnxITV4BoZCq0Q6dU5MVbBUw07v8=; b=Yi2SX6eC6vvvs4ilQjABFZIOvfvIpvClylKYsgxzah2CNdyRCirUe1V7wz2iqcC4TZ iqmmYH+zigCP3KLoKuNXeXsfiFjWks+yixaEKmYCOBbc4LPct/QQTHsd7SN3dXWVNqLI nPgpAcBzmio/RatPGazc45ZI56P7jwWQxgbKw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=UIs+fzdI8lATMKHsRWzzCaOLJ7e1DLc203DD/z2gJ8VftJE9yyS4LwI1MNBczS9AjP 3GH/k3JBewMeLdKlgXyztyJ695HXRMfp/EWpoDbZ67k6vfBEmr/Pdg5Cx7F7r9TvOWBR VMz8javmQIKYW55YFpRTCnQHuVweDlm3LRUlA= MIME-Version: 1.0 In-Reply-To: References: <7d244fb0-5457-4070-8569-306797f70131@glegroupsg2000goo.googlegroups.com> <4DEE6504.50906@stoneleaf.us> From: Ian Kelly Date: Tue, 7 Jun 2011 14:23:47 -0600 Subject: Re: GIL in alternative implementations To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 82.94.164.166 X-Trace: 1307478259 news.xs4all.nl 49046 [::ffff:82.94.164.166]:48278 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:7182 On Tue, Jun 7, 2011 at 2:22 PM, Ian Kelly wrote: > from functools import partial > > def g(value): > =A0 =A0print(value) > =A0 =A0return partial(g, value+1) > > f =3D partial(0) > for i in range(10000): > =A0 =A0f =3D f() The "partial(0)" should read "partial(g, 0)", of course.