Package compiler :: Module pyassem
[hide private]
[frames] | no frames]

Module pyassem

A flow graph representation for Python bytecode

Classes [hide private]
FlowGraph
Block
PyFlowGraph
TupleArg
Helper for marking func defs with nested tuples in arglist
LineAddrTable
lnotab
StackDepthTracker
Functions [hide private]
 
dfs_postorder(b, seen)
Depth-first search of tree rooted at b, return in postorder
 
isJump(opname)
 
getArgCount(args)
 
twobyte(val)
Convert an int argument into high and low bytes
 
findDepth(insts, debug=0)
Variables [hide private]
  RAW = 'RAW'
  FLAT = 'FLAT'
  CONV = 'CONV'
  DONE = 'DONE'

Imports: dis, new, sys, misc, CO_OPTIMIZED, CO_NEWLOCALS, CO_VARARGS, CO_VARKEYWORDS