class documentation

class Opcode: (source)

Known subclasses: pytype.pyc.opcodes.ASYNC_GEN_WRAP, pytype.pyc.opcodes.BEFORE_ASYNC_WITH, pytype.pyc.opcodes.BEFORE_WITH, pytype.pyc.opcodes.BEGIN_FINALLY, pytype.pyc.opcodes.BINARY_ADD, pytype.pyc.opcodes.BINARY_AND, pytype.pyc.opcodes.BINARY_FLOOR_DIVIDE, pytype.pyc.opcodes.BINARY_LSHIFT, pytype.pyc.opcodes.BINARY_MATRIX_MULTIPLY, pytype.pyc.opcodes.BINARY_MODULO, pytype.pyc.opcodes.BINARY_MULTIPLY, pytype.pyc.opcodes.BINARY_OR, pytype.pyc.opcodes.BINARY_POWER, pytype.pyc.opcodes.BINARY_RSHIFT, pytype.pyc.opcodes.BINARY_SUBSCR, pytype.pyc.opcodes.BINARY_SUBTRACT, pytype.pyc.opcodes.BINARY_TRUE_DIVIDE, pytype.pyc.opcodes.BINARY_XOR, pytype.pyc.opcodes.BREAK_LOOP, pytype.pyc.opcodes.CACHE, pytype.pyc.opcodes.CHECK_EG_MATCH, pytype.pyc.opcodes.CHECK_EXC_MATCH, pytype.pyc.opcodes.COPY_DICT_WITHOUT_KEYS, pytype.pyc.opcodes.DELETE_SUBSCR, pytype.pyc.opcodes.DUP_TOP, pytype.pyc.opcodes.DUP_TOP_TWO, pytype.pyc.opcodes.END_ASYNC_FOR, pytype.pyc.opcodes.END_FINALLY, pytype.pyc.opcodes.GET_AITER, pytype.pyc.opcodes.GET_ANEXT, pytype.pyc.opcodes.GET_AWAITABLE, pytype.pyc.opcodes.GET_ITER, pytype.pyc.opcodes.GET_LEN, pytype.pyc.opcodes.GET_YIELD_FROM_ITER, pytype.pyc.opcodes.IMPORT_STAR, pytype.pyc.opcodes.INPLACE_ADD, pytype.pyc.opcodes.INPLACE_AND, pytype.pyc.opcodes.INPLACE_FLOOR_DIVIDE, pytype.pyc.opcodes.INPLACE_LSHIFT, pytype.pyc.opcodes.INPLACE_MATRIX_MULTIPLY, pytype.pyc.opcodes.INPLACE_MODULO, pytype.pyc.opcodes.INPLACE_MULTIPLY, pytype.pyc.opcodes.INPLACE_OR, pytype.pyc.opcodes.INPLACE_POWER, pytype.pyc.opcodes.INPLACE_RSHIFT, pytype.pyc.opcodes.INPLACE_SUBTRACT, pytype.pyc.opcodes.INPLACE_TRUE_DIVIDE, pytype.pyc.opcodes.INPLACE_XOR, pytype.pyc.opcodes.LIST_TO_TUPLE, pytype.pyc.opcodes.LOAD_ASSERTION_ERROR, pytype.pyc.opcodes.LOAD_BUILD_CLASS, pytype.pyc.opcodes.MATCH_KEYS, pytype.pyc.opcodes.MATCH_MAPPING, pytype.pyc.opcodes.MATCH_SEQUENCE, pytype.pyc.opcodes.NOP, pytype.pyc.opcodes.OpcodeWithArg, pytype.pyc.opcodes.POP_BLOCK, pytype.pyc.opcodes.POP_EXCEPT, pytype.pyc.opcodes.POP_TOP, pytype.pyc.opcodes.PREP_RERAISE_STAR, pytype.pyc.opcodes.PRINT_EXPR, pytype.pyc.opcodes.PUSH_EXC_INFO, pytype.pyc.opcodes.PUSH_NULL, pytype.pyc.opcodes.RETURN_GENERATOR, pytype.pyc.opcodes.RETURN_VALUE, pytype.pyc.opcodes.ROT_FOUR, pytype.pyc.opcodes.ROT_THREE, pytype.pyc.opcodes.ROT_TWO, pytype.pyc.opcodes.SETUP_ANNOTATIONS, pytype.pyc.opcodes.STORE_SUBSCR, pytype.pyc.opcodes.UNARY_INVERT, pytype.pyc.opcodes.UNARY_NEGATIVE, pytype.pyc.opcodes.UNARY_NOT, pytype.pyc.opcodes.UNARY_POSITIVE, pytype.pyc.opcodes.WITH_CLEANUP_FINISH, pytype.pyc.opcodes.WITH_CLEANUP_START, pytype.pyc.opcodes.WITH_EXCEPT_START, pytype.pyc.opcodes.YIELD_FROM, pytype.pyc.opcodes.YIELD_VALUE

View In Hierarchy

An opcode without arguments.

Class Method carry_on_to_next Undocumented
Class Method does_jump Undocumented
Class Method has_arg Undocumented
Class Method has_argument Undocumented
Class Method has_const Undocumented
Class Method has_free Undocumented
Class Method has_jabs Undocumented
Class Method has_jrel Undocumented
Class Method has_jump Undocumented
Class Method has_junknown Undocumented
Class Method has_local Undocumented
Class Method has_name Undocumented
Class Method has_nargs Undocumented
Class Method no_next Undocumented
Class Method pops_block Undocumented
Class Method pushes_block Undocumented
Class Method store_jump Undocumented
Method __init__ Undocumented
Method __repr__ Undocumented
Method __str__ Undocumented
Method at_line Return a new opcode similar to this one but with a different line.
Method basic_str Helper function for the various __str__ formats.
Constant FLAGS Undocumented
Class Variable __slots__ Undocumented
Instance Variable annotation Undocumented
Instance Variable code Undocumented
Instance Variable folded Undocumented
Instance Variable index Undocumented
Instance Variable line Undocumented
Instance Variable target Undocumented
Property name Undocumented
@classmethod
def carry_on_to_next(cls): (source)

Undocumented

@classmethod
def does_jump(cls): (source)

Undocumented

@classmethod
def has_arg(cls): (source)

Undocumented

@classmethod
def has_argument(cls): (source)

Undocumented

@classmethod
def has_const(cls): (source)

Undocumented

@classmethod
def has_free(cls): (source)

Undocumented

@classmethod
def has_jabs(cls): (source)

Undocumented

@classmethod
def has_jrel(cls): (source)

Undocumented

@classmethod
def has_jump(cls): (source)

Undocumented

@classmethod
def has_junknown(cls): (source)

Undocumented

@classmethod
def has_local(cls): (source)

Undocumented

@classmethod
def has_name(cls): (source)

Undocumented

@classmethod
def has_nargs(cls): (source)

Undocumented

@classmethod
def no_next(cls): (source)

Undocumented

@classmethod
def pops_block(cls): (source)

Undocumented

@classmethod
def pushes_block(cls): (source)

Undocumented

@classmethod
def store_jump(cls): (source)

Undocumented

def __init__(self, index, line): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def __str__(self): (source)

Undocumented

def at_line(self, line): (source)

Return a new opcode similar to this one but with a different line.

def basic_str(self): (source)

Helper function for the various __str__ formats.

overridden in pytype.pyc.opcodes.BREAK_LOOP, pytype.pyc.opcodes.CALL_FINALLY, pytype.pyc.opcodes.CALL_FUNCTION, pytype.pyc.opcodes.CALL_FUNCTION_KW, pytype.pyc.opcodes.CALL_FUNCTION_VAR, pytype.pyc.opcodes.CALL_FUNCTION_VAR_KW, pytype.pyc.opcodes.CALL_METHOD, pytype.pyc.opcodes.CONTINUE_LOOP, pytype.pyc.opcodes.DELETE_ATTR, pytype.pyc.opcodes.DELETE_DEREF, pytype.pyc.opcodes.DELETE_FAST, pytype.pyc.opcodes.DELETE_GLOBAL, pytype.pyc.opcodes.DELETE_NAME, pytype.pyc.opcodes.FOR_ITER, pytype.pyc.opcodes.IMPORT_FROM, pytype.pyc.opcodes.IMPORT_NAME, pytype.pyc.opcodes.JUMP_ABSOLUTE, pytype.pyc.opcodes.JUMP_BACKWARD, pytype.pyc.opcodes.JUMP_BACKWARD_NO_INTERRUPT, pytype.pyc.opcodes.JUMP_FORWARD, pytype.pyc.opcodes.JUMP_IF_FALSE_OR_POP, pytype.pyc.opcodes.JUMP_IF_NOT_EXC_MATCH, pytype.pyc.opcodes.JUMP_IF_TRUE_OR_POP, pytype.pyc.opcodes.KW_NAMES, pytype.pyc.opcodes.LOAD_ATTR, pytype.pyc.opcodes.LOAD_CLASSDEREF, pytype.pyc.opcodes.LOAD_CLOSURE, pytype.pyc.opcodes.LOAD_CONST, pytype.pyc.opcodes.LOAD_DEREF, pytype.pyc.opcodes.LOAD_FAST, pytype.pyc.opcodes.LOAD_GLOBAL, pytype.pyc.opcodes.LOAD_METHOD, pytype.pyc.opcodes.LOAD_NAME, pytype.pyc.opcodes.MAKE_CELL, pytype.pyc.opcodes.POP_FINALLY, pytype.pyc.opcodes.POP_JUMP_BACKWARD_IF_FALSE, pytype.pyc.opcodes.POP_JUMP_BACKWARD_IF_NONE, pytype.pyc.opcodes.POP_JUMP_BACKWARD_IF_NOT_NONE, pytype.pyc.opcodes.POP_JUMP_BACKWARD_IF_TRUE, pytype.pyc.opcodes.POP_JUMP_FORWARD_IF_FALSE, pytype.pyc.opcodes.POP_JUMP_FORWARD_IF_NONE, pytype.pyc.opcodes.POP_JUMP_FORWARD_IF_NOT_NONE, pytype.pyc.opcodes.POP_JUMP_FORWARD_IF_TRUE, pytype.pyc.opcodes.POP_JUMP_IF_FALSE, pytype.pyc.opcodes.POP_JUMP_IF_TRUE, pytype.pyc.opcodes.RAISE_VARARGS, pytype.pyc.opcodes.RERAISE, pytype.pyc.opcodes.RETURN_VALUE, pytype.pyc.opcodes.SEND, pytype.pyc.opcodes.SETUP_ASYNC_WITH, pytype.pyc.opcodes.SETUP_EXCEPT, pytype.pyc.opcodes.SETUP_FINALLY, pytype.pyc.opcodes.SETUP_LOOP, pytype.pyc.opcodes.SETUP_WITH, pytype.pyc.opcodes.STORE_ANNOTATION, pytype.pyc.opcodes.STORE_ATTR, pytype.pyc.opcodes.STORE_DEREF, pytype.pyc.opcodes.STORE_FAST, pytype.pyc.opcodes.STORE_GLOBAL, pytype.pyc.opcodes.STORE_NAME

Undocumented

Value
0
__slots__: tuple[str, ...] = (source)
overridden in pytype.pyc.opcodes.ASYNC_GEN_WRAP, pytype.pyc.opcodes.BEFORE_ASYNC_WITH, pytype.pyc.opcodes.BEFORE_WITH, pytype.pyc.opcodes.BEGIN_FINALLY, pytype.pyc.opcodes.BINARY_ADD, pytype.pyc.opcodes.BINARY_AND, pytype.pyc.opcodes.BINARY_FLOOR_DIVIDE, pytype.pyc.opcodes.BINARY_LSHIFT, pytype.pyc.opcodes.BINARY_MATRIX_MULTIPLY, pytype.pyc.opcodes.BINARY_MODULO, pytype.pyc.opcodes.BINARY_MULTIPLY, pytype.pyc.opcodes.BINARY_OR, pytype.pyc.opcodes.BINARY_POWER, pytype.pyc.opcodes.BINARY_RSHIFT, pytype.pyc.opcodes.BINARY_SUBSCR, pytype.pyc.opcodes.BINARY_SUBTRACT, pytype.pyc.opcodes.BINARY_TRUE_DIVIDE, pytype.pyc.opcodes.BINARY_XOR, pytype.pyc.opcodes.BREAK_LOOP, pytype.pyc.opcodes.CACHE, pytype.pyc.opcodes.CHECK_EG_MATCH, pytype.pyc.opcodes.CHECK_EXC_MATCH, pytype.pyc.opcodes.COPY_DICT_WITHOUT_KEYS, pytype.pyc.opcodes.DELETE_SUBSCR, pytype.pyc.opcodes.DUP_TOP, pytype.pyc.opcodes.DUP_TOP_TWO, pytype.pyc.opcodes.END_ASYNC_FOR, pytype.pyc.opcodes.END_FINALLY, pytype.pyc.opcodes.GET_AITER, pytype.pyc.opcodes.GET_ANEXT, pytype.pyc.opcodes.GET_AWAITABLE, pytype.pyc.opcodes.GET_ITER, pytype.pyc.opcodes.GET_LEN, pytype.pyc.opcodes.GET_YIELD_FROM_ITER, pytype.pyc.opcodes.IMPORT_STAR, pytype.pyc.opcodes.INPLACE_ADD, pytype.pyc.opcodes.INPLACE_AND, pytype.pyc.opcodes.INPLACE_FLOOR_DIVIDE, pytype.pyc.opcodes.INPLACE_LSHIFT, pytype.pyc.opcodes.INPLACE_MATRIX_MULTIPLY, pytype.pyc.opcodes.INPLACE_MODULO, pytype.pyc.opcodes.INPLACE_MULTIPLY, pytype.pyc.opcodes.INPLACE_OR, pytype.pyc.opcodes.INPLACE_POWER, pytype.pyc.opcodes.INPLACE_RSHIFT, pytype.pyc.opcodes.INPLACE_SUBTRACT, pytype.pyc.opcodes.INPLACE_TRUE_DIVIDE, pytype.pyc.opcodes.INPLACE_XOR, pytype.pyc.opcodes.LIST_TO_TUPLE, pytype.pyc.opcodes.LOAD_ASSERTION_ERROR, pytype.pyc.opcodes.LOAD_BUILD_CLASS, pytype.pyc.opcodes.MATCH_KEYS, pytype.pyc.opcodes.MATCH_MAPPING, pytype.pyc.opcodes.MATCH_SEQUENCE, pytype.pyc.opcodes.NOP, pytype.pyc.opcodes.OpcodeWithArg, pytype.pyc.opcodes.POP_BLOCK, pytype.pyc.opcodes.POP_EXCEPT, pytype.pyc.opcodes.POP_TOP, pytype.pyc.opcodes.PREP_RERAISE_STAR, pytype.pyc.opcodes.PRINT_EXPR, pytype.pyc.opcodes.PUSH_EXC_INFO, pytype.pyc.opcodes.PUSH_NULL, pytype.pyc.opcodes.RETURN_GENERATOR, pytype.pyc.opcodes.RETURN_VALUE, pytype.pyc.opcodes.ROT_FOUR, pytype.pyc.opcodes.ROT_THREE, pytype.pyc.opcodes.ROT_TWO, pytype.pyc.opcodes.SETUP_ANNOTATIONS, pytype.pyc.opcodes.STORE_SUBSCR, pytype.pyc.opcodes.UNARY_INVERT, pytype.pyc.opcodes.UNARY_NEGATIVE, pytype.pyc.opcodes.UNARY_NOT, pytype.pyc.opcodes.UNARY_POSITIVE, pytype.pyc.opcodes.WITH_CLEANUP_FINISH, pytype.pyc.opcodes.WITH_CLEANUP_START, pytype.pyc.opcodes.WITH_EXCEPT_START, pytype.pyc.opcodes.YIELD_FROM, pytype.pyc.opcodes.YIELD_VALUE

Undocumented

annotation = (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented