FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-111354: Simplify _PyGen_yf by moving some of its work to the compiler and frame state by iritkatriel · Pull Request #111648 · python/cpython · GitHub

/ cpython Public

gh-111354: Simplify _PyGen_yf by moving some of its work to the compiler and frame state - #111648

Merged
iritkatriel merged 2 commits into
python:mainfrom
iritkatriel:gen_yf
Nov 3, 2023
Merged

gh-111354: Simplify _PyGen_yf by moving some of its work to the compiler and frame state#111648
iritkatriel merged 2 commits into
python:mainfrom
iritkatriel:gen_yf

Conversation

iritkatriel commented Nov 2, 2023
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

This splits the SUSPENDED frame state into SUSPENDED and SUSPENDED_YIELD_FROM, adds an oparg to YIELD_VALUE to indicate whether it's in a yield-from or await (so it can set the state correctly). With this, _PyGen_yf has a lot less work to do.


📚 Documentation preview 📚: https://cpython-previews--111648.org.readthedocs.build/

markshannon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I'd like to avoid the extra branch in YIELD_VALUE.
Other than that, looks good.

Comment thread Python/bytecodes.c Outdated
Comment thread Python/bytecodes.c Outdated

bedevere-app Bot commented Nov 2, 2023

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

iritkatriel commented Nov 2, 2023
edited
Loading

Copy link
Copy Markdown
Member Author

I have made the requested changes; please review again.

markshannon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks good.

iritkatriel merged commit d49aba5 into python:main Nov 3, 2023
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL