Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #7182

Re: GIL in alternative implementations

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 <ian.g.kelly@gmail.com>
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 <BANLkTi=Q6pJLYjB1Af+SmntHOSbHUpb0gg@mail.gmail.com>
References <7d244fb0-5457-4070-8569-306797f70131@glegroupsg2000goo.googlegroups.com> <4DEE6504.50906@stoneleaf.us> <BANLkTi=Q6pJLYjB1Af+SmntHOSbHUpb0gg@mail.gmail.com>
From Ian Kelly <ian.g.kelly@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2546.1307478259.9059.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Tue, Jun 7, 2011 at 2:22 PM, Ian Kelly <ian.g.kelly@gmail.com> wrote:
> from functools import partial
>
> def g(value):
>    print(value)
>    return partial(g, value+1)
>
> f = partial(0)
> for i in range(10000):
>    f = f()

The "partial(0)" should read "partial(g, 0)", of course.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: GIL in alternative implementations Carl Banks <pavlovevidence@gmail.com> - 2011-06-07 10:08 -0700
  Re: GIL in alternative implementations Ethan Furman <ethan@stoneleaf.us> - 2011-06-07 10:51 -0700
  Re: GIL in alternative implementations Ian Kelly <ian.g.kelly@gmail.com> - 2011-06-07 14:22 -0600
  Re: GIL in alternative implementations Ian Kelly <ian.g.kelly@gmail.com> - 2011-06-07 14:23 -0600

csiph-web