[Python-checkins] r59577 - python/trunk/Python/compile.c

raymond.hettinger python-checkins at python.org
Thu Dec 20 02:25:05 CET 2007


Author: raymond.hettinger
Date: Thu Dec 20 02:25:05 2007
New Revision: 59577

Modified:
   python/trunk/Python/compile.c
Log:
Add comments

Modified: python/trunk/Python/compile.c
==============================================================================
--- python/trunk/Python/compile.c	(original)
+++ python/trunk/Python/compile.c	Thu Dec 20 02:25:05 2007
@@ -3439,10 +3439,10 @@
 instrsize(struct instr *instr)
 {
 	if (!instr->i_hasarg)
-		return 1;
+		return 1;	/* 1 byte for the opcode*/
 	if (instr->i_oparg > 0xffff)
-		return 6;
-	return 3;
+		return 6;	/* 1 (opcode) + 1 (EXTENDED_ARG opcode) + 2 (oparg) + 2(oparg extended) */
+	return 3; 		/* 1 (opcode) + 2 (oparg) */
 }
 
 static int


More information about the Python-checkins mailing list