summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-01-17 21:06:11 (GMT)
committerGuido van Rossum <guido@python.org>1997-01-17 21:06:11 (GMT)
commitdd5db439058df23ceca517620cda9e6420aff4cf (patch)
treef83fa4ea316302255b898a0a1e3caf758c8de0c2 /Python
parent62f7d15d0bc83f2b1a78cca79691ad65de15381e (diff)
downloadcpython-dd5db439058df23ceca517620cda9e6420aff4cf.zip
cpython-dd5db439058df23ceca517620cda9e6420aff4cf.tar.gz
cpython-dd5db439058df23ceca517620cda9e6420aff4cf.tar.bz2
New MAGIC number (code objects have one more item when marshalled).
Diffstat (limited to 'Python')
-rw-r--r--Python/import.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c
index de1772c..cc5b9f9 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 */