As Marc-Andre Lemburg points out, the magic number needs to change

because we've added Unicode marshalling to the repertoire.
This commit is contained in:
Guido van Rossum 2000-04-28 19:03:54 +00:00
parent 40ee7acb95
commit 1cb6cd0ec5

View file

@ -84,7 +84,7 @@ extern long PyOS_GetLastModificationTime(); /* In getmtime.c */
/* XXX Perhaps the magic number should be frozen and a version field
added to the .pyc file header? */
/* New way to come up with the magic number: (YEAR-1995), MONTH, DAY */
#define MAGIC (20121 | ((long)'\r'<<16) | ((long)'\n'<<24))
#define MAGIC (50428 | ((long)'\r'<<16) | ((long)'\n'<<24))
/* See _PyImport_FixupExtension() below */
static PyObject *extensions = NULL;