GIL in alternative implementations

Ian Kelly ian.g.kelly at gmail.com
Tue Jun 7 16:23:47 EDT 2011


On Tue, Jun 7, 2011 at 2:22 PM, Ian Kelly <ian.g.kelly at 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.



More information about the Python-list mailing list