diff options
author | Mark Shannon <mark@hotpy.org> | 2022-01-24 11:08:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 11:08:53 +0000 |
commit | 0367a36fdc36b9c909c4d5acf7cde6ceeec0ba69 (patch) | |
tree | 1a87e9cb04dca5ef87abc4bd55540bdb41bd2172 /Lib/opcode.py | |
parent | d75a51bea3c2442f81d38ff850b81b8b7f3330f0 (diff) | |
download | cpython-git-0367a36fdc36b9c909c4d5acf7cde6ceeec0ba69.tar.gz |
bpo-43683: Streamline YIELD_VALUE and SEND (GH-30723)
* Split YIELD_VALUE into ASYNC_GEN_WRAP; YIELD_VALUE for async generators.
* Split SEND into SEND; YIELD_VALUE.
* Document new opcodes.
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r-- | Lib/opcode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py index 73b41d22df..1bd48eee85 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -101,7 +101,7 @@ def_op('RETURN_VALUE', 83) def_op('IMPORT_STAR', 84) def_op('SETUP_ANNOTATIONS', 85) def_op('YIELD_VALUE', 86) - +def_op('ASYNC_GEN_WRAP', 87) def_op('PREP_RERAISE_STAR', 88) def_op('POP_EXCEPT', 89) |