]> granicus.if.org Git - python/commitdiff
New MAGIC number (code objects have one more item when marshalled).
authorGuido van Rossum <guido@python.org>
Fri, 17 Jan 1997 21:06:11 +0000 (21:06 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 17 Jan 1997 21:06:11 +0000 (21:06 +0000)
Python/import.c

index de1772cc80e878d0fbc03dd7dc869284c86f0cfe..cc5b9f938dffb4c3e17a877bf531143ad3872cdd 100644 (file)
@@ -66,7 +66,8 @@ extern long getmtime(); /* In getmtime.c */
    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 */