comparison Python/import.c @ 13930:4eaa463c031a legacy-trunk

Merge UNPACK_LIST and UNPACK_TUPLE into a single UNPACK_SEQUENCE, since they did the same anyway. I'm not sure what to do with Tools/compiler/compiler/* -- that isn't part of distutils, is it ? Should it try to be compatible with old bytecode version ?
author Thomas Wouters <thomas@python.org>
date Fri, 11 Aug 2000 22:15:52 +0000
parents 4388249506d1
children 18385172fac0
comparison
equal deleted inserted replaced
13929:f194d8b24865 13930:4eaa463c031a
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 (50428 | ((long)'\r'<<16) | ((long)'\n'<<24)) 69 #define MAGIC (50811 | ((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;