From be2c928e3a199524c35cf7612bb211a48322f3f4 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 4 Jul 2011 09:17:59 -0400 Subject: Add some comments. --- coverage/bytecode.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'coverage/bytecode.py') diff --git a/coverage/bytecode.py b/coverage/bytecode.py index ab522d6..61c311e 100644 --- a/coverage/bytecode.py +++ b/coverage/bytecode.py @@ -5,10 +5,19 @@ import opcode, sys, types class ByteCode(object): """A single bytecode.""" def __init__(self): + # The offset of this bytecode in the code object. self.offset = -1 + + # The opcode, defined in the `opcode` module. self.op = -1 + + # The argument, a small integer, whose meaning depends on the opcode. self.arg = -1 + + # The offset in the code object of the next bytecode. self.next_offset = -1 + + # The offset to jump to. self.jump_to = -1 -- cgit v1.2.1