C API WG says the PEP is fine.
There are some details of the API surface that aren’t explicit in the PEP that we want to get right, but they don’t need to be written in the PEP nor block the implementation.
Personally, I still recommend changing this bit to prevent confusion:
Calls to [
PyFrame_FastToLocals
, etc.] are no longer required. C code that directly accesses thef_locals
field of a frame should be modified to callPyFrame_GetLocals()
instead: [example]
This reads like a new change, but it’s already the case since Python 3.11. Consider linking to the the What’s New entry instead of giving an example.