[Python-Dev] PEP 558: Defined semantics for locals()

Steven D'Aprano steve at pearwood.info
Sun May 26 07:50:09 EDT 2019

On Sun, May 26, 2019 at 09:20:53PM +1000, Chris Angelico wrote:

> Sure, but this PEP is all about defining things that weren't
> previously defined, so I wanted to clarify intent rather than current
> behaviour.

As I understand it, the intent is to:

- fix some annoyances/bugs involved when you have a trace hook;
- make the current CPython behaviour a language behaviour.


More information about the Python-Dev mailing list