PyFrame_FastToLocalsWithError() PyFrame_FastToLocals() PyFrame_LocalsToFast()
They will be removed in 3.15.
Any special reason to remove them? PEP 387 says:
No special reason. I’ll remove the removal from the PEP
Similar for
PyEval_GetLocals
& co.
PyEval_GetLocals
is a special case as it has a cost to support it (we need an extra field in the frame object) and it is unsafe because it returns a borrowed reference.
So we do want to remove it. Let’s say that it might be removed in 3.15, that way we can remove if we really need to, or wait for 3.18 if it isn’t a burden.