Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 33248:1f9b9c226b43 legacy-trunk
SF Patch #1013667: Cleanup Peepholer Output
* Make a pass to eliminate NOPs. Produce code that is more readable,
more compact, and a tiny bit faster. Makes the peepholer more flexible
in the scope of allowable transformations.
* With Guido's okay, bumped up the magic number so that this patch gets
widely exercised before the alpha goes out.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Mon, 23 Aug 2004 23:37:48 +0000 |
| parents | 331e60d8ce6d |
| children | 2b49b4a85d9e |
line wrap: on
line diff
--- a/Python/import.c Mon Aug 23 23:30:20 2004 +0000 +++ b/Python/import.c Mon Aug 23 23:37:48 2004 +0000 @@ -48,8 +48,9 @@ Python 2.3a0: 62021 Python 2.3a0: 62011 (!) Python 2.4a0: 62041 + Python 2.4a3: 62051 */ -#define MAGIC (62041 | ((long)'\r'<<16) | ((long)'\n'<<24)) +#define MAGIC (62051 | ((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
