Hi folks, I've finally updated PEP 558 and it's reference implementation based on Nathaniel's feedback back in May.
The latest version of the PEP can now be found at https://www.python.org/dev/peps/pep-0558/, and I've created a discussion thread on Discourse: https://discuss.python.org/t/pep-558-defined-semantics-for-locals/2936 The latest version implements Nathaniel's "independent snapshot" proposal, and I like how that has turned out. The one thing that changed from the May discussion thread is that the refcount semantics of PyEval_GetLocals() (it returns a borrowed reference) meant that it had to keep the old behaviour of returning a reference to the internal dynamically updated shared "snapshot" at function scope, with a new API, PyEval_GetPyLocals(), providing the C equivalent of the locals() builtin. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/GHN2GYJQRU77EZBXX4SQUZ5XEMEONSFL/ Code of Conduct: http://python.org/psf/codeofconduct/