diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2010-09-11 00:39:25 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2010-09-11 00:39:25 (GMT) |
commit | cd419abe42b42c626d91d5f839d53bdbde9852e0 (patch) | |
tree | 37d7b2ab19918129e361fd6663ee6090c6b078c6 /Python | |
parent | b55e498f56317d728fcbd004f8bd262db552eb7c (diff) | |
download | cpython-cd419abe42b42c626d91d5f839d53bdbde9852e0.zip cpython-cd419abe42b42c626d91d5f839d53bdbde9852e0.tar.gz cpython-cd419abe42b42c626d91d5f839d53bdbde9852e0.tar.bz2 |
Fix incorrect comment regarding MAGIC and TAG in import.c
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c index f5bc03d..b8cfbee 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" |