summaryrefslogtreecommitdiff
path: root/coverage/bytecode.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2011-07-04 09:17:59 -0400
committerNed Batchelder <ned@nedbatchelder.com>2011-07-04 09:17:59 -0400
commitbe2c928e3a199524c35cf7612bb211a48322f3f4 (patch)
tree4ba12dbdec2dcada805cf6fbbeb425ed4d498e36 /coverage/bytecode.py
parent826a37153b4ad8657d194adcd9d2e2c78177a9ca (diff)
downloadpython-coveragepy-be2c928e3a199524c35cf7612bb211a48322f3f4.tar.gz
Add some comments.
Diffstat (limited to 'coverage/bytecode.py')
-rw-r--r--coverage/bytecode.py9
1 files changed, 9 insertions, 0 deletions
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