From a1f10901097e1a3788314a6aee49edf3690dd0b4 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Wed, 12 Jul 2006 07:28:29 +0000 Subject: [PATCH] Actually change the MAGIC #. Create a new section for 2.5c1 and mention the impact of changing the MAGIC #. --- Misc/NEWS | 21 +++++++++++++++++++-- Python/import.c | 2 +- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Misc/NEWS b/Misc/NEWS index b3527654753..114664f12bb 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -4,6 +4,25 @@ Python News (editors: check NEWS.help for information about editing NEWS using ReST.) +What's New in Python 2.5 release candidate 1? +============================================= + +*Release date: XX-AUG-2006* + +Core and builtins +----------------- + +- Bug #1520864: unpacking singleton tuples in for loop (for x, in) work + again. Fixing this problem required changing the .pyc magic number. + This means that .pyc files generated before 2.5c1 will be regenerated. + +Library +------- + +Extension Modules +----------------- + + What's New in Python 2.5 beta 2? ================================ @@ -12,8 +31,6 @@ What's New in Python 2.5 beta 2? Core and builtins ----------------- -- Bug #1520864: unpacking singleton tuples in for loop (for x, in) work again. - - Bug #1441486: The literal representation of -(sys.maxint - 1) again evaluates to a int object, not a long. diff --git a/Python/import.c b/Python/import.c index dfc25449dd1..341f652cd01 100644 --- a/Python/import.c +++ b/Python/import.c @@ -63,7 +63,7 @@ extern time_t PyOS_GetLastModificationTime(char *, FILE *); Python 2.5c1: 62101 (fix wrong code: for x, in ...) . */ -#define MAGIC (62092 | ((long)'\r'<<16) | ((long)'\n'<<24)) +#define MAGIC (62101 | ((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