Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5c8b4e2

Browse files
bpo-35224: Bump the pyc magic number after the change in MAP_ADD (GH-14313)
(cherry picked from commit663131a)Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
1 parent874ff65 commit5c8b4e2

File tree

2 files changed

+124
-122
lines changed

2 files changed

+124
-122
lines changed

‎Lib/importlib/_bootstrap_external.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ def _write_atomic(path, data, mode=0o666):
266266
# Python 3.8a1 3400 (move frame block handling to compiler #17611)
267267
# Python 3.8a1 3401 (add END_ASYNC_FOR #33041)
268268
# Python 3.8a1 3410 (PEP570 Python Positional-Only Parameters #36540)
269+
# Python 3.8b2 3420 (Reverse evaluation order of key: value in dict
270+
# comprehensions #35224)
269271
#
270272
# MAGIC must change whenever the bytecode emitted by the compiler may no
271273
# longer be understood by older implementations of the eval loop (usually
@@ -274,7 +276,7 @@ def _write_atomic(path, data, mode=0o666):
274276
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
275277
# in PC/launcher.c must also be updated.
276278

277-
MAGIC_NUMBER= (3410).to_bytes(2,'little')+b'\r\n'
279+
MAGIC_NUMBER= (3420).to_bytes(2,'little')+b'\r\n'
278280
_RAW_MAGIC_NUMBER=int.from_bytes(MAGIC_NUMBER,'little')# For import.c
279281

280282
_PYCACHE='__pycache__'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2026 Movatter.jp