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

Greg Ewing greg.ewing at canterbury.ac.nz
Mon May 27 03:18:03 EDT 2019

Chris Angelico wrote:
> Except that it does. After calling locals() a second time, the result
> of the *first* call will be updated to reflect changes.

Yeow. That's *really* unintuitive. There had better be an extremely
good reason for this behaviour.


More information about the Python-Dev mailing list