[Python-checkins] r84703 - python/branches/py3k/Python/import.c
nick.coghlan
python-checkins at python.org
Sat Sep 11 02:39:25 CEST 2010
Author: nick.coghlan
Date: Sat Sep 11 02:39:25 2010
New Revision: 84703
Log:
Fix incorrect comment regarding MAGIC and TAG in import.c
Modified:
python/branches/py3k/Python/import.c
Modified: python/branches/py3k/Python/import.c
==============================================================================
--- python/branches/py3k/Python/import.c (original)
+++ python/branches/py3k/Python/import.c Sat Sep 11 02:39:25 2010
@@ -108,8 +108,11 @@
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"
More information about the Python-checkins
mailing list