diff options
author | Mark Shannon <mark@hotpy.org> | 2020-01-27 09:57:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-27 09:57:45 (GMT) |
commit | 8a4cd700a7426341c2074a2b580306d2d60ec839 (patch) | |
tree | 64ff9fdc0361fe05e0ef5a2508e832a5de03b830 /Lib/opcode.py | |
parent | 72b1004657e60c900e4cd031b2635b587f4b280e (diff) | |
download | cpython-8a4cd700a7426341c2074a2b580306d2d60ec839.zip cpython-8a4cd700a7426341c2074a2b580306d2d60ec839.tar.gz cpython-8a4cd700a7426341c2074a2b580306d2d60ec839.tar.bz2 |
bpo-39320: Handle unpacking of **values in compiler (GH-18141)
* Add DICT_UPDATE and DICT_MERGE bytecodes. Use them for ** unpacking.
* Remove BUILD_MAP_UNPACK and BUILD_MAP_UNPACK_WITH_CALL, as they are now unused.
* Update magic number for ** unpacking opcodes.
* Update dis.rst to incorporate new bytecodes.
* Add blurb entry.
Diffstat (limited to 'Lib/opcode.py')
-rw-r--r-- | Lib/opcode.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/opcode.py b/Lib/opcode.py index 5bc2ddc..ac1aa53 100644 --- a/Lib/opcode.py +++ b/Lib/opcode.py @@ -200,9 +200,6 @@ hasfree.append(148) def_op('EXTENDED_ARG', 144) EXTENDED_ARG = 144 -def_op('BUILD_MAP_UNPACK', 150) -def_op('BUILD_MAP_UNPACK_WITH_CALL', 151) - jrel_op('SETUP_ASYNC_WITH', 154) def_op('FORMAT_VALUE', 155) @@ -214,5 +211,7 @@ def_op('CALL_METHOD', 161) def_op('LIST_EXTEND', 162) def_op('SET_UPDATE', 163) +def_op('DICT_MERGE', 164) +def_op('DICT_UPDATE', 165) del def_op, name_op, jrel_op, jabs_op |