Skip to content

Commit 4af8fd5

Browse files
bpo-32838: Fix Python versions in the table of magic numbers. (#5658)
1 parent a049f57 commit 4af8fd5

File tree

2 files changed

+152
-149
lines changed

2 files changed

+152
-149
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -197,52 +197,55 @@ def _write_atomic(path, data, mode=0o666):
197197
# 3101 (merge from 2.6a0, see 62151)
198198
# 3103 (__file__ points to source file)
199199
# Python 3.0a4: 3111 (WITH_CLEANUP optimization).
200-
# Python 3.0a5: 3131 (lexical exception stacking, including POP_EXCEPT)
201-
# Python 3.1a0: 3141 (optimize list, set and dict comprehensions:
202-
# change LIST_APPEND and SET_ADD, add MAP_ADD)
203-
# Python 3.1a0: 3151 (optimize conditional branches:
204-
# introduce POP_JUMP_IF_FALSE and POP_JUMP_IF_TRUE)
205-
# Python 3.2a0: 3160 (add SETUP_WITH)
200+
# Python 3.0b1: 3131 (lexical exception stacking, including POP_EXCEPT
201+
#3021)
202+
# Python 3.1a1: 3141 (optimize list, set and dict comprehensions:
203+
# change LIST_APPEND and SET_ADD, add MAP_ADD #2183)
204+
# Python 3.1a1: 3151 (optimize conditional branches:
205+
# introduce POP_JUMP_IF_FALSE and POP_JUMP_IF_TRUE
206+
#4715)
207+
# Python 3.2a1: 3160 (add SETUP_WITH #6101)
206208
# tag: cpython-32
207-
# Python 3.2a1: 3170 (add DUP_TOP_TWO, remove DUP_TOPX and ROT_FOUR)
209+
# Python 3.2a2: 3170 (add DUP_TOP_TWO, remove DUP_TOPX and ROT_FOUR #9225)
208210
# tag: cpython-32
209-
# Python 3.2a2 3180 (add DELETE_DEREF)
210-
# Python 3.3a0 3190 __class__ super closure changed
211-
# Python 3.3a0 3200 (__qualname__ added)
212-
# 3210 (added size modulo 2**32 to the pyc header)
213-
# Python 3.3a1 3220 (changed PEP 380 implementation)
214-
# Python 3.3a4 3230 (revert changes to implicit __class__ closure)
211+
# Python 3.2a3 3180 (add DELETE_DEREF #4617)
212+
# Python 3.3a1 3190 (__class__ super closure changed)
213+
# Python 3.3a1 3200 (PEP 3155 __qualname__ added #13448)
214+
# Python 3.3a1 3210 (added size modulo 2**32 to the pyc header #13645)
215+
# Python 3.3a2 3220 (changed PEP 380 implementation #14230)
216+
# Python 3.3a4 3230 (revert changes to implicit __class__ closure #14857)
215217
# Python 3.4a1 3250 (evaluate positional default arguments before
216-
# keyword-only defaults)
218+
# keyword-only defaults #16967)
217219
# Python 3.4a1 3260 (add LOAD_CLASSDEREF; allow locals of class to override
218-
# free vars)
219-
# Python 3.4a1 3270 (various tweaks to the __class__ closure)
220+
# free vars #17853)
221+
# Python 3.4a1 3270 (various tweaks to the __class__ closure #12370)
220222
# Python 3.4a1 3280 (remove implicit class argument)
221-
# Python 3.4a4 3290 (changes to __qualname__ computation)
222-
# Python 3.4a4 3300 (more changes to __qualname__ computation)
223-
# Python 3.4rc2 3310 (alter __qualname__ computation)
224-
# Python 3.5a0 3320 (matrix multiplication operator)
225-
# Python 3.5b1 3330 (PEP 448: Additional Unpacking Generalizations)
223+
# Python 3.4a4 3290 (changes to __qualname__ computation #19301)
224+
# Python 3.4a4 3300 (more changes to __qualname__ computation #19301)
225+
# Python 3.4rc2 3310 (alter __qualname__ computation #20625)
226+
# Python 3.5a1 3320 (PEP 465: Matrix multiplication operator #21176)
227+
# Python 3.5b1 3330 (PEP 448: Additional Unpacking Generalizations #2292)
226228
# Python 3.5b2 3340 (fix dictionary display evaluation order #11205)
227-
# Python 3.5b2 3350 (add GET_YIELD_FROM_ITER opcode #24400)
229+
# Python 3.5b3 3350 (add GET_YIELD_FROM_ITER opcode #24400)
228230
# Python 3.5.2 3351 (fix BUILD_MAP_UNPACK_WITH_CALL opcode #27286)
229-
# Python 3.6a0 3360 (add FORMAT_VALUE opcode #25483
230-
# Python 3.6a0 3361 (lineno delta of code.co_lnotab becomes signed)
231-
# Python 3.6a1 3370 (16 bit wordcode)
232-
# Python 3.6a1 3371 (add BUILD_CONST_KEY_MAP opcode #27140)
233-
# Python 3.6a1 3372 (MAKE_FUNCTION simplification, remove MAKE_CLOSURE
231+
# Python 3.6a0 3360 (add FORMAT_VALUE opcode #25483)
232+
# Python 3.6a1 3361 (lineno delta of code.co_lnotab becomes signed #26107)
233+
# Python 3.6a2 3370 (16 bit wordcode #26647)
234+
# Python 3.6a2 3371 (add BUILD_CONST_KEY_MAP opcode #27140)
235+
# Python 3.6a2 3372 (MAKE_FUNCTION simplification, remove MAKE_CLOSURE
234236
# #27095)
235237
# Python 3.6b1 3373 (add BUILD_STRING opcode #27078)
236238
# Python 3.6b1 3375 (add SETUP_ANNOTATIONS and STORE_ANNOTATION opcodes
237239
# #27985)
238-
# Python 3.6b1 3376 (simplify CALL_FUNCTIONs & BUILD_MAP_UNPACK_WITH_CALL)
240+
# Python 3.6b1 3376 (simplify CALL_FUNCTIONs & BUILD_MAP_UNPACK_WITH_CALL
241+
#27213)
239242
# Python 3.6b1 3377 (set __class__ cell from type.__new__ #23722)
240243
# Python 3.6b2 3378 (add BUILD_TUPLE_UNPACK_WITH_CALL #28257)
241244
# Python 3.6rc1 3379 (more thorough __class__ validation #23722)
242-
# Python 3.7a0 3390 (add LOAD_METHOD and CALL_METHOD opcodes)
243-
# Python 3.7a0 3391 (update GET_AITER #31709)
244-
# Python 3.7a0 3392 (PEP 552: Deterministic pycs)
245-
# Python 3.7a0 3393 (remove STORE_ANNOTATION opcode)
245+
# Python 3.7a1 3390 (add LOAD_METHOD and CALL_METHOD opcodes #26110)
246+
# Python 3.7a2 3391 (update GET_AITER #31709)
247+
# Python 3.7a4 3392 (PEP 552: Deterministic pycs #31650)
248+
# Python 3.7b1 3393 (remove STORE_ANNOTATION opcode #32550)
246249
#
247250
# MAGIC must change whenever the bytecode emitted by the compiler may no
248251
# longer be understood by older implementations of the eval loop (usually

0 commit comments

Comments
 (0)