]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39320: Handle unpacking of *values in compiler (GH-17984)
authorMark Shannon <mark@hotpy.org>
Thu, 23 Jan 2020 09:25:17 +0000 (09:25 +0000)
committerGitHub <noreply@github.com>
Thu, 23 Jan 2020 09:25:17 +0000 (09:25 +0000)
commit13bc13960cc83dbd1cb5701d9a59ac9b9144b205
tree582d8286864561b8a29be0491f837c22efd1f07e
parentf9e07e116c32b6dc4561d0bdeb452ccde13b0e7c
bpo-39320: Handle unpacking of *values in compiler (GH-17984)

* Add three new bytecodes: LIST_TO_TUPLE, LIST_EXTEND, SET_UPDATE. Use them to implement star unpacking expressions.

* Remove four bytecodes BUILD_LIST_UNPACK, BUILD_TUPLE_UNPACK, BUILD_SET_UNPACK and  BUILD_TUPLE_UNPACK_WITH_CALL opcodes as they are now unused.

* Update magic number and dis.rst for new bytecodes.
Doc/library/dis.rst
Include/opcode.h
Lib/importlib/_bootstrap_external.py
Lib/opcode.py
Lib/test/test_extcall.py
Misc/NEWS.d/next/Core and Builtins/2020-01-15-15-33-44.bpo-39320.b4hnJW.rst [new file with mode: 0644]
Python/ceval.c
Python/compile.c
Python/importlib_external.h
Python/opcode_targets.h