[pypy-dev] Locals clearing in RPython

Benjamin Peterson benjamin at python.org
Thu Sep 6 20:30:39 CEST 2012


2012/9/6 Timothy Baldridge <tbaldridge at gmail.com>:
> Let's imagine that I have some code like the following in RPython:
>
>
> def wrapper_func(arg1, arg2):
>     return inner_func(arg2)
>
> def inner_func(x):
>    for y in range(x):
>       # do something here
>       pass
>    return -1
>
> bigint = 1000000
>
> wrapper_func(list(range(bigint)), bigint)

Since that's all evaluated at import time, I don't see what the problem is.


-- 
Regards,
Benjamin


More information about the pypy-dev mailing list