diff Python/compile.c @ 44358:0ad12c79af18 legacy-trunk

Add comments
author Raymond Hettinger <python@rcn.com>
date Thu, 20 Dec 2007 01:25:05 +0000
parents 51c175c86f36
children 69c5703d20fb
line wrap: on
line diff
--- a/Python/compile.c	Wed Dec 19 22:51:13 2007 +0000
+++ b/Python/compile.c	Thu Dec 20 01:25:05 2007 +0000
@@ -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