From: Guido van Rossum Date: Fri, 17 Jan 1997 21:06:11 +0000 (+0000) Subject: New MAGIC number (code objects have one more item when marshalled). X-Git-Tag: v1.5a1~483 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd5db439058df23ceca517620cda9e6420aff4cf;p=python New MAGIC number (code objects have one more item when marshalled). --- diff --git a/Python/import.c b/Python/import.c index de1772cc80..cc5b9f938d 100644 --- a/Python/import.c +++ b/Python/import.c @@ -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 */