cpython
cpython copied to clipboard
Insert shim frames at entries points to the interpreter.
Inserting shim frames simplifies RETURN_VALUE, YIELD_VALUE and RETURN_GENERATOR and enables for to be specialized for generators, and await to be specialized for coroutines.
See https://github.com/faster-cpython/ideas/issues/436 for full discussion
- PR: gh-98795
- PR: gh-96319