class documentation

class OrderedCode: (source)

View In Hierarchy

Code object which knows about instruction ordering. Attributes: co_argcount: Same as loadmarshal.CodeType. co_posonlyargcount: Same as loadmarshal.CodeType. co_kwonlyargcount: Same as loadmarshal.CodeType. co_nlocals: Same as loadmarshal.CodeType. co_stacksize: Same as loadmarshal.CodeType. co_flags: Same as loadmarshal.CodeType. co_consts: Same as loadmarshal.CodeType. co_names: Same as loadmarshal.CodeType. co_varnames: Same as loadmarshal.CodeType. co_filename: Same as loadmarshal.CodeType. co_name: Same as loadmarshal.CodeType. co_firstlineno: Same as loadmarshal.CodeType. co_lnotab: Same as loadmarshal.CodeType. co_freevars: Same as loadmarshal.CodeType. co_cellvars: Same as loadmarshal.CodeType. order: A list of bytecode blocks. They're ordered ancestors-first, see cfg_utils.py:order_nodes. code_iter: A flattened list of block opcodes. Corresponds to co_code. original_co_code: The original code object's co_code. first_opcode: The first opcode in code_iter. python_version: The Python version this bytecode is from.

Method __init__ Undocumented
Method get_arg_count Undocumented
Method has_async_generator Undocumented
Method has_coroutine Undocumented
Method has_generator Undocumented
Method has_iterable_coroutine Undocumented
Method has_newlocals Undocumented
Method has_opcode Undocumented
Method has_varargs Undocumented
Method has_varkeywords Undocumented
Method set_iterable_coroutine Undocumented
Instance Variable order Undocumented
Instance Variable original_co_code Undocumented
Instance Variable python_version Undocumented
Property code_iter Undocumented
Property first_opcode Undocumented
Constant _HAS_DYNAMIC_ATTRIBUTES Undocumented
def __init__(self, code, bytecode, order, python_version): (source)

Undocumented

def get_arg_count(self): (source)

Undocumented

def has_async_generator(self): (source)

Undocumented

def has_coroutine(self): (source)

Undocumented

def has_generator(self): (source)

Undocumented

def has_iterable_coroutine(self): (source)

Undocumented

def has_newlocals(self): (source)

Undocumented

def has_opcode(self, op_type): (source)

Undocumented

def has_varargs(self): (source)

Undocumented

def has_varkeywords(self): (source)

Undocumented

def set_iterable_coroutine(self): (source)

Undocumented

Undocumented

original_co_code = (source)

Undocumented

python_version = (source)

Undocumented

Undocumented

@property
first_opcode = (source)

Undocumented

_HAS_DYNAMIC_ATTRIBUTES: bool = (source)

Undocumented

Value
True