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

2019年5月28日 22:26:16 -0700

On Wed., 29 May 2019, 2:29 pm Guido van Rossum, <[email protected]> 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.
Cheers,
Nick.
)
>
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to