Visitar URL original
bpo-46409: Make generators in bytecode by markshannon · Pull Request #30633 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Name new instructions in news item.
  • Loading branch information
markshannon committed Jan 20, 2022
commit 44d3f47ca3392dd57c412b617226c76d4fa8906d
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
Add new bytecode to make generators. Simplifies calling Python functions in
the VM, as they no longer any need to special case generator functions.
Add new ``RETURN_GENERATOR`` bytecode to make generators.
Simplifies calling Python functions in the VM, as they no
longer any need to special case generator functions.

Also add ``JUMP_NO_INTERRUPT`` bytecode that acts like
``JUMP_ABSOLUTE``, but does not check for interrupts.