Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd419ab

Browse files
committed
Fix incorrect comment regarding MAGIC and TAG in import.c
1 parent b55e498 commit cd419ab

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Python/import.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,11 @@ typedef unsigned short mode_t;
108108
Python 3.2a2 3180 (add DELETE_DEREF)
109109
*/
110110

111-
/* If you change MAGIC, you must change TAG and you must insert the old value
112-
into _PyMagicNumberTags below.
111+
/* MAGIC must change whenever the bytecode emitted by the compiler may no
112+
longer be understood by older implementations of the eval loop (usually
113+
due to the addition of new opcodes)
114+
TAG must change for each major Python release. The magic number will take
115+
care of any bytecode changes that occur during development.
113116
*/
114117
#define MAGIC (3180 | ((long)'\r'<<16) | ((long)'\n'<<24))
115118
#define TAG "cpython-32"

0 commit comments

Comments
 (0)