diff options
author | Mark Shannon <mark@hotpy.org> | 2021-04-06 10:48:59 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 10:48:59 (GMT) |
commit | b37181e69209746adc2119c471599a1ea5faa6c8 (patch) | |
tree | 3605b5e9447fe18ed0c87b745daef1216301583f /Lib/opcode.py | |
parent | 489c36920e94bfb4988b6f965bd0aafdfaff0d4f (diff) | |
download | cpython-b37181e69209746adc2119c471599a1ea5faa6c8.zip cpython-b37181e69209746adc2119c471599a1ea5faa6c8.tar.gz cpython-b37181e69209746adc2119c471599a1ea5faa6c8.tar.bz2 |
bpo-43683: Handle generator entry in bytecode (GH-25138)
* Handle check for sending None to starting generator and coroutine into bytecode.
* Document new bytecode and make it fail gracefully if mis-compiled.
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r-- | Lib/opcode.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py index b119712..196e6f8 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -173,6 +173,7 @@ haslocal.append(125) def_op('DELETE_FAST', 126) # Local variable number haslocal.append(126) +def_op('GEN_START', 129) # Kind of generator/coroutine def_op('RAISE_VARARGS', 130) # Number of raise arguments (1, 2, or 3) def_op('CALL_FUNCTION', 131) # #args def_op('MAKE_FUNCTION', 132) # Flags |