Visitar URL original
GH-89914: Make the oparg of the YIELD_VALUE instruction equal the stack depth. by markshannon · Pull Request #92960 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20220519145834/https://github.com/python/cpython/pull/92960
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-89914: Make the oparg of the YIELD_VALUE instruction equal the stack depth. #92960

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

markshannon
Copy link
Member

@markshannon markshannon commented May 19, 2022 •

A small change. Sets the oparg of YIELD_VALUE to be the stack depth.
This is an enabler of faster-cpython/ideas#111 (comment)
It does have some merit by itself, as an additional sanity check for debug builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants