mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
bpo-32838: Fix Python versions in the table of magic numbers. (GH-5658)
(cherry picked from commit 4af8fd5614
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
1ad6ca5eb9
commit
8d9d4b57ae
2 changed files with 152 additions and 149 deletions
|
@ -197,52 +197,55 @@ _code_type = type(_write_atomic.__code__)
|
|||
# 3101 (merge from 2.6a0, see 62151)
|
||||
# 3103 (__file__ points to source file)
|
||||
# Python 3.0a4: 3111 (WITH_CLEANUP optimization).
|
||||
# Python 3.0a5: 3131 (lexical exception stacking, including POP_EXCEPT)
|
||||
# Python 3.1a0: 3141 (optimize list, set and dict comprehensions:
|
||||
# change LIST_APPEND and SET_ADD, add MAP_ADD)
|
||||
# Python 3.1a0: 3151 (optimize conditional branches:
|
||||
# introduce POP_JUMP_IF_FALSE and POP_JUMP_IF_TRUE)
|
||||
# Python 3.2a0: 3160 (add SETUP_WITH)
|
||||
# Python 3.0b1: 3131 (lexical exception stacking, including POP_EXCEPT
|
||||
#3021)
|
||||
# Python 3.1a1: 3141 (optimize list, set and dict comprehensions:
|
||||
# change LIST_APPEND and SET_ADD, add MAP_ADD #2183)
|
||||
# Python 3.1a1: 3151 (optimize conditional branches:
|
||||
# introduce POP_JUMP_IF_FALSE and POP_JUMP_IF_TRUE
|
||||
#4715)
|
||||
# Python 3.2a1: 3160 (add SETUP_WITH #6101)
|
||||
# tag: cpython-32
|
||||
# Python 3.2a1: 3170 (add DUP_TOP_TWO, remove DUP_TOPX and ROT_FOUR)
|
||||
# Python 3.2a2: 3170 (add DUP_TOP_TWO, remove DUP_TOPX and ROT_FOUR #9225)
|
||||
# tag: cpython-32
|
||||
# Python 3.2a2 3180 (add DELETE_DEREF)
|
||||
# Python 3.3a0 3190 __class__ super closure changed
|
||||
# Python 3.3a0 3200 (__qualname__ added)
|
||||
# 3210 (added size modulo 2**32 to the pyc header)
|
||||
# Python 3.3a1 3220 (changed PEP 380 implementation)
|
||||
# Python 3.3a4 3230 (revert changes to implicit __class__ closure)
|
||||
# Python 3.2a3 3180 (add DELETE_DEREF #4617)
|
||||
# Python 3.3a1 3190 (__class__ super closure changed)
|
||||
# Python 3.3a1 3200 (PEP 3155 __qualname__ added #13448)
|
||||
# Python 3.3a1 3210 (added size modulo 2**32 to the pyc header #13645)
|
||||
# Python 3.3a2 3220 (changed PEP 380 implementation #14230)
|
||||
# Python 3.3a4 3230 (revert changes to implicit __class__ closure #14857)
|
||||
# Python 3.4a1 3250 (evaluate positional default arguments before
|
||||
# keyword-only defaults)
|
||||
# keyword-only defaults #16967)
|
||||
# Python 3.4a1 3260 (add LOAD_CLASSDEREF; allow locals of class to override
|
||||
# free vars)
|
||||
# Python 3.4a1 3270 (various tweaks to the __class__ closure)
|
||||
# free vars #17853)
|
||||
# Python 3.4a1 3270 (various tweaks to the __class__ closure #12370)
|
||||
# Python 3.4a1 3280 (remove implicit class argument)
|
||||
# Python 3.4a4 3290 (changes to __qualname__ computation)
|
||||
# Python 3.4a4 3300 (more changes to __qualname__ computation)
|
||||
# Python 3.4rc2 3310 (alter __qualname__ computation)
|
||||
# Python 3.5a0 3320 (matrix multiplication operator)
|
||||
# Python 3.5b1 3330 (PEP 448: Additional Unpacking Generalizations)
|
||||
# Python 3.4a4 3290 (changes to __qualname__ computation #19301)
|
||||
# Python 3.4a4 3300 (more changes to __qualname__ computation #19301)
|
||||
# Python 3.4rc2 3310 (alter __qualname__ computation #20625)
|
||||
# Python 3.5a1 3320 (PEP 465: Matrix multiplication operator #21176)
|
||||
# Python 3.5b1 3330 (PEP 448: Additional Unpacking Generalizations #2292)
|
||||
# Python 3.5b2 3340 (fix dictionary display evaluation order #11205)
|
||||
# Python 3.5b2 3350 (add GET_YIELD_FROM_ITER opcode #24400)
|
||||
# Python 3.5b3 3350 (add GET_YIELD_FROM_ITER opcode #24400)
|
||||
# Python 3.5.2 3351 (fix BUILD_MAP_UNPACK_WITH_CALL opcode #27286)
|
||||
# Python 3.6a0 3360 (add FORMAT_VALUE opcode #25483
|
||||
# Python 3.6a0 3361 (lineno delta of code.co_lnotab becomes signed)
|
||||
# Python 3.6a1 3370 (16 bit wordcode)
|
||||
# Python 3.6a1 3371 (add BUILD_CONST_KEY_MAP opcode #27140)
|
||||
# Python 3.6a1 3372 (MAKE_FUNCTION simplification, remove MAKE_CLOSURE
|
||||
# Python 3.6a0 3360 (add FORMAT_VALUE opcode #25483)
|
||||
# Python 3.6a1 3361 (lineno delta of code.co_lnotab becomes signed #26107)
|
||||
# Python 3.6a2 3370 (16 bit wordcode #26647)
|
||||
# Python 3.6a2 3371 (add BUILD_CONST_KEY_MAP opcode #27140)
|
||||
# Python 3.6a2 3372 (MAKE_FUNCTION simplification, remove MAKE_CLOSURE
|
||||
# #27095)
|
||||
# Python 3.6b1 3373 (add BUILD_STRING opcode #27078)
|
||||
# Python 3.6b1 3375 (add SETUP_ANNOTATIONS and STORE_ANNOTATION opcodes
|
||||
# #27985)
|
||||
# Python 3.6b1 3376 (simplify CALL_FUNCTIONs & BUILD_MAP_UNPACK_WITH_CALL)
|
||||
# Python 3.6b1 3376 (simplify CALL_FUNCTIONs & BUILD_MAP_UNPACK_WITH_CALL
|
||||
#27213)
|
||||
# Python 3.6b1 3377 (set __class__ cell from type.__new__ #23722)
|
||||
# Python 3.6b2 3378 (add BUILD_TUPLE_UNPACK_WITH_CALL #28257)
|
||||
# Python 3.6rc1 3379 (more thorough __class__ validation #23722)
|
||||
# Python 3.7a0 3390 (add LOAD_METHOD and CALL_METHOD opcodes)
|
||||
# Python 3.7a0 3391 (update GET_AITER #31709)
|
||||
# Python 3.7a0 3392 (PEP 552: Deterministic pycs)
|
||||
# Python 3.7a0 3393 (remove STORE_ANNOTATION opcode)
|
||||
# Python 3.7a1 3390 (add LOAD_METHOD and CALL_METHOD opcodes #26110)
|
||||
# Python 3.7a2 3391 (update GET_AITER #31709)
|
||||
# Python 3.7a4 3392 (PEP 552: Deterministic pycs #31650)
|
||||
# Python 3.7b1 3393 (remove STORE_ANNOTATION opcode #32550)
|
||||
#
|
||||
# MAGIC must change whenever the bytecode emitted by the compiler may no
|
||||
# longer be understood by older implementations of the eval loop (usually
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue