bpo-42197: Don't create `f_locals` dictionary unless we actually need it. (GH-32055)
* `PyFrame_FastToLocalsWithError` and `PyFrame_LocalsToFast` are no longer called during profile and tracing. (Contributed by Fabio Zadrozny) * Make accesses to a frame's `f_locals` safe from C code, not relying on calls to `PyFrame_FastToLocals` or `PyFrame_LocalsToFast`. * Document new `PyFrame_GetLocals` C-API function.
M
Mark Shannon committed
d7163bb35d1ed46bde9affcd4eb267dfd0b703dd
Parent: b68431f
Committed by GitHub <noreply@github.com>
on 3/25/2022, 12:57:50 PM