Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd5db43

Browse files
committed
New MAGIC number (code objects have one more item when marshalled).
1 parent 62f7d15 commit dd5db43

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/import.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ extern long getmtime(); /* In getmtime.c */
6666
Apple MPW compiler swaps their values, botching string constants */
6767
/* XXX Perhaps the magic number should be frozen and a version field
6868
added to the .pyc file header? */
69-
#define MAGIC (5892 | ((long)'\r'<<16) | ((long)'\n'<<24))
69+
/* New way to come up with the magic number: (YEAR-1995), MONTH, DAY */
70+
#define MAGIC (20117 | ((long)'\r'<<16) | ((long)'\n'<<24))
7071

7172
object *import_modules; /* This becomes sys.modules */
7273

0 commit comments

Comments
 (0)