class documentation

class _Stack: (source)

View In Hierarchy

A simple opcode stack.

Method __init__ Undocumented
Method __iter__ Undocumented
Method build Build a folded type.
Method build_str Undocumented
Method clear Undocumented
Method fold_args Collect the arguments to a build call.
Method fold_map_args Collect the arguments to a BUILD_MAP call.
Method pop Undocumented
Method push Undocumented
Instance Variable consts Undocumented
Instance Variable stack Undocumented
Method _pop_args Try to get n args off the stack for a BUILD call.
Method _preserve_constant Undocumented
def __init__(self): (source)

Undocumented

def __iter__(self): (source)

Undocumented

def build(self, python_type, op): (source)

Build a folded type.

def build_str(self, n, op): (source)

Undocumented

def clear(self): (source)

Undocumented

def fold_args(self, n, op): (source)

Collect the arguments to a build call.

def fold_map_args(self, n, op): (source)

Collect the arguments to a BUILD_MAP call.

def pop(self): (source)

Undocumented

def push(self, val): (source)

Undocumented

Undocumented

Undocumented

def _pop_args(self, n): (source)

Try to get n args off the stack for a BUILD call.

def _preserve_constant(self, c): (source)

Undocumented