osdir.com


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

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


On Mon, 27 May 2019 at 16:11, Guido van Rossum <guido at python.org> wrote:
>
> No, there's only one locals() dict *per stack frame*. So no worries about concurrency.

Again, if the PEP is about formalising the behaviour as language
mandated, this is worth documenting explicitly.
Paul