This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients Mark.Shannon, ncoghlan, vstinner
Date 2022-03-30.15:00:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Mark's suggested frame stack API makes sense to me, but being able to get/set specific values through the full frame API seems like it would be useful even if the lower level API existed - if we don't get one of the proxy PEPs in shape to land in 3.11, trace functions written in C could still use this to avoid materialising the locals dict if they only needed to manipulate specific values.

Even after a fast locals proxy is defined, there would still be some saving in skipping creating the proxy object when only accessing known keys.

We'd need the name-to-index mapping on the code objects to implement this API efficiently, but that isn't a PEP level change in its own right (the proxy PEPs only mention it because they need it)
Date User Action Args
2022-03-30 15:00:53ncoghlansetrecipients: + ncoghlan, vstinner, Mark.Shannon
2022-03-30 15:00:53ncoghlansetmessageid: <>
2022-03-30 15:00:53ncoghlanlinkissue47092 messages
2022-03-30 15:00:53ncoghlancreate