Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 33539:2b49b4a85d9e legacy-trunk
SF patch #1031667: Fold tuples of constants into a single constant
Example:
>>> import dis
>>> dis.dis(compile('1,2,3', '', 'eval'))
0 0 LOAD_CONST 3 ((1, 2, 3))
3 RETURN_VALUE
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Wed, 22 Sep 2004 18:44:21 +0000 |
| parents | 1f9b9c226b43 |
| children | d74ddcff0724 |
line wrap: on
line diff
--- a/Python/import.c Wed Sep 22 18:03:47 2004 +0000 +++ b/Python/import.c Wed Sep 22 18:44:21 2004 +0000 @@ -49,8 +49,9 @@ Python 2.3a0: 62011 (!) Python 2.4a0: 62041 Python 2.4a3: 62051 + Python 2.4b1: 62061 */ -#define MAGIC (62051 | ((long)'\r'<<16) | ((long)'\n'<<24)) +#define MAGIC (62061 | ((long)'\r'<<16) | ((long)'\n'<<24)) /* Magic word as global; note that _PyImport_Init() can change the value of this global to accommodate for alterations of how the
