-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-46409: Make generators in bytecode #30633
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
Merged
markshannon
merged 20 commits into
python:main
from
faster-cpython:make-gen-in-bytecode
Jan 20, 2022
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
bf0394d
Add new instruction to make generator or coroutine from current frame.
markshannon 23877ec
Set line number for RETURN_GENERATOR instruction.
markshannon 381f3d3
Fix magic number
markshannon c2b141e
Remove unused code.
markshannon 8b73d0d
Rename YIELD_FROM_LOOP to JUMP_NO_INTERRUPT: describe what it does, n…
markshannon 7cb3dad
Document new bytecodes.
markshannon 79b6d11
Add news
markshannon 039b14d
Merge branch 'main' into make-gen-in-bytecode
markshannon c33abbf
Fix whitespace in opcode.py
markshannon d105cac
Trim frame and generator by word each.
markshannon e7c4bf2
Minor refactor of frame.c
markshannon c080089
Update test.test_sys to account for smaller frames.
markshannon 1b177e3
Skip clearing of old frame when returning a generator.
markshannon 243e441
Treat generator functions as normal functions when evaluating and spe…
markshannon a79e36b
Attempt to streamline eval-breaker checks a bit.
markshannon 7392593
Revert change in test.
markshannon 17b453a
Remove unused macro.
markshannon baa1009
Add some clarifications and explanations.
markshannon 44d3f47
Name new instructions in news item.
markshannon 06330b0
Use Py_NewRef
markshannon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove unused code.
- Loading branch information
commit c2b141e54b21d00a1d92238a0710a261f5035a1b
There are no files selected for viewing
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
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.