From: Nick Coghlan Date: Sat, 11 Sep 2010 00:39:25 +0000 (+0000) Subject: Fix incorrect comment regarding MAGIC and TAG in import.c X-Git-Tag: v3.2a3~324 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd419abe42b42c626d91d5f839d53bdbde9852e0;p=thirdparty%2FPython%2Fcpython.git Fix incorrect comment regarding MAGIC and TAG in import.c --- diff --git a/Python/import.c b/Python/import.c index f5bc03ddd834..b8cfbee61023 100644 --- a/Python/import.c +++ b/Python/import.c @@ -108,8 +108,11 @@ typedef unsigned short mode_t; Python 3.2a2 3180 (add DELETE_DEREF) */ -/* If you change MAGIC, you must change TAG and you must insert the old value - into _PyMagicNumberTags below. +/* MAGIC must change whenever the bytecode emitted by the compiler may no + longer be understood by older implementations of the eval loop (usually + due to the addition of new opcodes) + TAG must change for each major Python release. The magic number will take + care of any bytecode changes that occur during development. */ #define MAGIC (3180 | ((long)'\r'<<16) | ((long)'\n'<<24)) #define TAG "cpython-32"