summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-02 07:33:46 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-02 07:33:46 (GMT)
commit7344285c1919e5ade8016a83a3ee02fd637a030d (patch)
treef5ac9aea45f055c175d1c462f63eb4fb341830b0 /Lib/importlib
parent8f0f2056499847999fffa7af7a8872500a191203 (diff)
downloadcpython-7344285c1919e5ade8016a83a3ee02fd637a030d.zip
cpython-7344285c1919e5ade8016a83a3ee02fd637a030d.tar.gz
cpython-7344285c1919e5ade8016a83a3ee02fd637a030d.tar.bz2
Issue #28257: Improved error message when pass a non-iterable as
a var-positional argument. Added opcode BUILD_TUPLE_UNPACK_WITH_CALL.
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap_external.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
index bfb89da..5cb58ab 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -238,6 +238,7 @@ _code_type = type(_write_atomic.__code__)
# #27985)
# Python 3.6b1 3376 (simplify CALL_FUNCTIONs & BUILD_MAP_UNPACK_WITH_CALL)
# Python 3.6b1 3377 (set __class__ cell from type.__new__ #23722)
+# Python 3.6b2 3378 (add BUILD_TUPLE_UNPACK_WITH_CALL #28257)
#
# MAGIC must change whenever the bytecode emitted by the compiler may no
# longer be understood by older implementations of the eval loop (usually
@@ -246,7 +247,7 @@ _code_type = type(_write_atomic.__code__)
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
# in PC/launcher.c must also be updated.
-MAGIC_NUMBER = (3377).to_bytes(2, 'little') + b'\r\n'
+MAGIC_NUMBER = (3378).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
_PYCACHE = '__pycache__'