Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4af8fd56
Commit
4af8fd56
authored
Feb 22, 2018
by
Serhiy Storchaka
Committed by
GitHub
Feb 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-32838: Fix Python versions in the table of magic numbers. (#5658)
parent
a049f579
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
152 additions
and
149 deletions
+152
-149
Lib/importlib/_bootstrap_external.py
Lib/importlib/_bootstrap_external.py
+35
-32
Python/importlib_external.h
Python/importlib_external.h
+117
-117
No files found.
Lib/importlib/_bootstrap_external.py
View file @
4af8fd56
...
...
@@ -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.2a
1: 3170 (add DUP_TOP_TWO, remove DUP_TOPX and ROT_FOUR
)
# Python 3.2a
2: 3170 (add DUP_TOP_TWO, remove DUP_TOPX and ROT_FOUR #9225
)
# tag: cpython-32
# Python 3.2a
2 3180 (add DELETE_DEREF
)
# Python 3.3a
0 3190 __class__ super closure changed
# Python 3.3a
0 3200 (__qualname__ added
)
#
3210 (added size modulo 2**32 to the pyc header
)
# Python 3.3a
1 3220 (changed PEP 380 implementation
)
# Python 3.3a4 3230 (revert changes to implicit __class__ closure)
# Python 3.2a
3 3180 (add DELETE_DEREF #4617
)
# Python 3.3a
1 3190 (__class__ super closure changed)
# Python 3.3a
1 3200 (PEP 3155 __qualname__ added #13448
)
#
Python 3.3a1 3210 (added size modulo 2**32 to the pyc header #13645
)
# Python 3.3a
2 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.5a
0 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.5a
1 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.5b
2
3350 (add GET_YIELD_FROM_ITER opcode #24400)
# Python 3.5b
3
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.6a
0 3361 (lineno delta of code.co_lnotab becomes signed
)
# Python 3.6a
1 3370 (16 bit wordcode
)
# Python 3.6a
1
3371 (add BUILD_CONST_KEY_MAP opcode #27140)
# Python 3.6a
1
3372 (MAKE_FUNCTION simplification, remove MAKE_CLOSURE
# Python 3.6a0 3360 (add FORMAT_VALUE opcode #25483
)
# Python 3.6a
1 3361 (lineno delta of code.co_lnotab becomes signed #26107
)
# Python 3.6a
2 3370 (16 bit wordcode #26647
)
# Python 3.6a
2
3371 (add BUILD_CONST_KEY_MAP opcode #27140)
# Python 3.6a
2
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.7a
0 3390 (add LOAD_METHOD and CALL_METHOD opcodes
)
# Python 3.7a
0
3391 (update GET_AITER #31709)
# Python 3.7a
0 3392 (PEP 552: Deterministic pycs
)
# Python 3.7
a0 3393 (remove STORE_ANNOTATION opcode
)
# Python 3.7a
1 3390 (add LOAD_METHOD and CALL_METHOD opcodes #26110
)
# Python 3.7a
2
3391 (update GET_AITER #31709)
# Python 3.7a
4 3392 (PEP 552: Deterministic pycs #31650
)
# Python 3.7
b1 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
...
...
Python/importlib_external.h
View file @
4af8fd56
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment