On Tue, Jun 7, 2011 at 2:22 PM, Ian Kelly <ian.g.ke...@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.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to