Mercurial > cpython-lru_cache-weakref
comparison Python/import.c @ 14103:f657dc8ff25e legacy-trunk
Thomas reminds me to bump the MAGIC number for the extended print
opcode additions.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Mon, 21 Aug 2000 16:35:06 +0000 |
| parents | 18385172fac0 |
| children | 1b9fd0cbd914 |
comparison
equal
deleted
inserted
replaced
| 14102:29636f020d4c | 14103:f657dc8ff25e |
|---|---|
| 64 a .pyc file in text mode the magic number will be wrong; also, the | 64 a .pyc file in text mode the magic number will be wrong; also, the |
| 65 Apple MPW compiler swaps their values, botching string constants */ | 65 Apple MPW compiler swaps their values, botching string constants */ |
| 66 /* XXX Perhaps the magic number should be frozen and a version field | 66 /* XXX Perhaps the magic number should be frozen and a version field |
| 67 added to the .pyc file header? */ | 67 added to the .pyc file header? */ |
| 68 /* New way to come up with the magic number: (YEAR-1995), MONTH, DAY */ | 68 /* New way to come up with the magic number: (YEAR-1995), MONTH, DAY */ |
| 69 #define MAGIC (50815 | ((long)'\r'<<16) | ((long)'\n'<<24)) | 69 #define MAGIC (50821 | ((long)'\r'<<16) | ((long)'\n'<<24)) |
| 70 | 70 |
| 71 /* Magic word as global; note that _PyImport_Init() can change the | 71 /* Magic word as global; note that _PyImport_Init() can change the |
| 72 value of this global to accommodate for alterations of how the | 72 value of this global to accommodate for alterations of how the |
| 73 compiler works which are enabled by command line switches. */ | 73 compiler works which are enabled by command line switches. */ |
| 74 static long pyc_magic = MAGIC; | 74 static long pyc_magic = MAGIC; |
