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
b3ca7972
Commit
b3ca7972
authored
Jun 23, 2019
by
Pablo Galindo
Committed by
GitHub
Jun 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-35224: Bump the pyc magic number by 1 instead of by 10 in last modification (GH-14320)
parent
663131a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Lib/importlib/_bootstrap_external.py
Lib/importlib/_bootstrap_external.py
+2
-2
Python/importlib_external.h
Python/importlib_external.h
+1
-1
No files found.
Lib/importlib/_bootstrap_external.py
View file @
b3ca7972
...
...
@@ -266,7 +266,7 @@ _code_type = type(_write_atomic.__code__)
# Python 3.8a1 3400 (move frame block handling to compiler #17611)
# Python 3.8a1 3401 (add END_ASYNC_FOR #33041)
# Python 3.8a1 3410 (PEP570 Python Positional-Only Parameters #36540)
# Python 3.8b2 34
20
(Reverse evaluation order of key: value in dict
# Python 3.8b2 34
11
(Reverse evaluation order of key: value in dict
# comprehensions #35224)
#
# MAGIC must change whenever the bytecode emitted by the compiler may no
...
...
@@ -276,7 +276,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
=
(
34
20
).
to_bytes
(
2
,
'little'
)
+
b'
\
r
\
n
'
MAGIC_NUMBER
=
(
34
11
).
to_bytes
(
2
,
'little'
)
+
b'
\
r
\
n
'
_RAW_MAGIC_NUMBER
=
int
.
from_bytes
(
MAGIC_NUMBER
,
'little'
)
# For import.c
_PYCACHE
=
'__pycache__'
...
...
Python/importlib_external.h
View file @
b3ca7972
...
...
@@ -278,7 +278,7 @@ const unsigned char _Py_M__importlib_bootstrap_external[] = {
95
,
97
,
116
,
111
,
109
,
105
,
99
,
120
,
0
,
0
,
0
,
115
,
30
,
0
,
0
,
0
,
0
,
5
,
16
,
1
,
6
,
1
,
16
,
0
,
6
,
255
,
4
,
2
,
2
,
3
,
14
,
1
,
20
,
1
,
16
,
1
,
14
,
1
,
2
,
1
,
14
,
1
,
14
,
1
,
6
,
1
,
114
,
69
,
0
,
0
,
0
,
105
,
92
,
13
,
0
,
0
,
114
,
28
,
0
,
0
,
0
,
114
,
16
,
0
,
0
,
0
,
0
,
105
,
83
,
13
,
0
,
0
,
114
,
28
,
0
,
0
,
0
,
114
,
16
,
0
,
0
,
0
,
115
,
2
,
0
,
0
,
0
,
13
,
10
,
90
,
11
,
95
,
95
,
112
,
121
,
99
,
97
,
99
,
104
,
101
,
95
,
95
,
122
,
4
,
111
,
112
,
116
,
45
,
122
,
3
,
46
,
112
,
121
,
122
,
4
,
46
,
112
,
121
,
99
,
78
,
41
,
1
,
218
,
12
,
111
,
112
,
116
,
105
,
...
...
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