Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 35008:44e3f21f0525 legacy-trunk
This is my patch:
[ 1180995 ] binary formats for marshalling floats
Adds 2 new type codes for marshal (binary floats and binary complexes), a
new marshal version (2), updates MAGIC and fiddles the de-serializing of
code objects to be less likely to clobber the real reason for failing if
it fails.
| author | Michael W. Hudson <mwh@python.net> |
|---|---|
| date | Fri, 03 Jun 2005 14:41:55 +0000 |
| parents | 4a33c58c319c |
| children | 81259009ba2c |
line wrap: on
line diff
--- a/Python/import.c Fri Jun 03 14:28:50 2005 +0000 +++ b/Python/import.c Fri Jun 03 14:41:55 2005 +0000 @@ -50,8 +50,9 @@ Python 2.4a0: 62041 Python 2.4a3: 62051 Python 2.4b1: 62061 + Python 2.5a0: 62071 */ -#define MAGIC (62061 | ((long)'\r'<<16) | ((long)'\n'<<24)) +#define MAGIC (62071 | ((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
