diff Python/import.c @ 4993:b82d847b3dcb legacy-trunk

New MAGIC number (code objects have one more item when marshalled).
author Guido van Rossum <guido@python.org>
date Fri, 17 Jan 1997 21:06:11 +0000
parents 4fa19659591e
children 104a646fc7a6
line wrap: on
line diff
--- a/Python/import.c	Fri Jan 17 21:05:28 1997 +0000
+++ b/Python/import.c	Fri Jan 17 21:06:11 1997 +0000
@@ -66,7 +66,8 @@
    Apple MPW compiler swaps their values, botching string constants */
 /* XXX Perhaps the magic number should be frozen and a version field
    added to the .pyc file header? */
-#define MAGIC (5892 | ((long)'\r'<<16) | ((long)'\n'<<24))
+/* New way to come up with the magic number: (YEAR-1995), MONTH, DAY */
+#define MAGIC (20117 | ((long)'\r'<<16) | ((long)'\n'<<24))
 
 object *import_modules; /* This becomes sys.modules */