diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2011-07-04 09:17:59 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2011-07-04 09:17:59 -0400 |
commit | 94c2e8d3e4f372bd2f25c09cb2a9a095bed4aa48 (patch) | |
tree | 20794f1c0d8163099600e141137294d6f0cc8c2e /coverage/bytecode.py | |
parent | 4fde5ad96601737691ac2a8797be08db183610bc (diff) | |
download | python-coveragepy-git-94c2e8d3e4f372bd2f25c09cb2a9a095bed4aa48.tar.gz |
Add some comments.
Diffstat (limited to 'coverage/bytecode.py')
-rw-r--r-- | coverage/bytecode.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/coverage/bytecode.py b/coverage/bytecode.py index ab522d6c..61c311eb 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 |