diff options
author | Michael W. Hudson <mwh@python.net> | 2005-06-03 14:41:55 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2005-06-03 14:41:55 (GMT) |
commit | df88846ebca9186514e86bc2067242233ade4608 (patch) | |
tree | 345828bee8f325fc38b74827a08f80e098dff9ea /Python/import.c | |
parent | 268e61cf7458d85d2e100480635390ebd480088f (diff) | |
download | cpython-df88846ebca9186514e86bc2067242233ade4608.zip cpython-df88846ebca9186514e86bc2067242233ade4608.tar.gz cpython-df88846ebca9186514e86bc2067242233ade4608.tar.bz2 |
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.
Diffstat (limited to 'Python/import.c')
-rw-r--r-- | Python/import.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/import.c b/Python/import.c index 0362dbd..c03d4cc 100644 --- a/Python/import.c +++ b/Python/import.c @@ -50,8 +50,9 @@ extern time_t PyOS_GetLastModificationTime(char *, FILE *); 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 |