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 | [email protected] | Brisbane, Australia _______________________________________________ Python-Dev mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/GHN2GYJQRU77EZBXX4SQUZ5XEMEONSFL/ Code of Conduct: http://python.org/psf/codeofconduct/
