Table of Contents

Class: codeIter ./src/peak/util/Code.py

Iterator for stepping through bytecode

Base Classes   
object
Methods   
__init__
__iter__
arg
go
next
setMask
write
  __init__ 
__init__ (
        self,
        code,
        startAt=0,
        findOps=None,
        )

Iterator for code, starting at startAt, finding findOps

  __iter__ 
__iter__ ( self )

  arg 
arg ( self )

Argument value of current opcode, accessed as a property

  go 
go ( self,  offset )

Go to offset in the code, returning the next matching opcode

  next 
next ( self )

Return the next matching opcode or raise StopIteration

Exceptions   
StopIteration
  setMask 
setMask ( self,  findOps=None )

Set the list of opcodes this iterator will iterate over

  write 
write (
        self,
        op,
        arg=None,
        sameSize=1,
        )

Write op (w/optional arg) at current position

Exceptions   
ValueError

Table of Contents

This document was automatically generated on Mon Nov 11 01:11:04 2024 by HappyDoc version 2.1