<div dir="auto">Hi folks,<div dir="auto"><br></div><div dir="auto">The reference implementation for PEP 558 (my attempt to fix the interaction between tracing functions and closure variables) is currently segfaulting somewhere deep in the garbage collector, and I've found that there's an issue with the PyEval_GetLocals() API returning a borrowed reference that means I need to tweak the proposed C API a bit such that PyEval_GetLocals() returns the proxy at function scope, and we add a new PyEval_GetPyLocals() that matches the locals() builtin.</div><div dir="auto"><br></div><div dir="auto">I don't *want* to postpone this to Python 3.9, but there turned out to be more remaining work than I thought there was to get this ready for inclusion in beta 1.</div><div dir="auto"><br></div><div dir="auto">I'll try to get the C API design details sorted today, but the segfault is mystifying me, and prevents the option of putting the core implementation in place for b1, and tidying up the documentation and comments for b2.</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">Nick.</div></div>