Browse Source
bpo-39320: Handle unpacking of **values in compiler (GH-18141)
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.pull/18196/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 3670 additions and 3662 deletions
-
21Doc/library/dis.rst
-
4Include/opcode.h
-
3Lib/importlib/_bootstrap_external.py
-
5Lib/opcode.py
-
4Misc/NEWS.d/next/Core and Builtins/2020-01-15-15-50-22.bpo-39320.oWARyk.rst
-
55Python/ceval.c
-
90Python/compile.c
-
2842Python/importlib.h
-
4300Python/importlib_external.h
-
8Python/opcode_targets.h
@ -0,0 +1,4 @@ |
|||
|
|||
Replace two complex bytecodes for building dicts with two simpler ones. |
|||
The new bytecodes ``DICT_MERGE`` and ``DICT_UPDATE`` have been added |
|||
The old bytecodes ``BUILD_MAP_UNPACK`` and ``BUILD_MAP_UNPACK_WITH_CALL`` have been removed. |
|||
2842
Python/importlib.h
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
4300
Python/importlib_external.h
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue