[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Python-Dev] [PEP 558] thinking through locals() semantics

On Wed., 29 May 2019, 2:29 pm Guido van Rossum, <guido at> wrote:

> So why is it ?hellish? for JITs if locals() returns a proxy, while
> frame.f_locals being a proxy is okay?

As I understand it, they already drop out of compiled mode if they detect
that the code is tinkering with frame objects.

Having a single locals() call de-optimize an entire function would be far
from ideal.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>