Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 23851:d6ae544acd24 legacy-trunk
Fix SF bug # 561858 Assertion with very long lists
Write 4 bytes for co_stacksize, etc. to prevent writing out
bad .pyc files which can cause a crash when read back in.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Fri, 14 Jun 2002 01:07:39 +0000 |
| parents | ed1ba37a46b7 |
| children | 08475c87d24f |
line wrap: on
line diff
--- a/Python/import.c Fri Jun 14 00:50:42 2002 +0000 +++ b/Python/import.c Fri Jun 14 01:07:39 2002 +0000 @@ -59,9 +59,9 @@ Python 2.1.1: 60202 Python 2.1.2: 60202 Python 2.2: 60717 - Python 2.3a0: 62001 + Python 2.3a0: 62011 */ -#define MAGIC (62001 | ((long)'\r'<<16) | ((long)'\n'<<24)) +#define MAGIC (62011 | ((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
