How to use the pytype.pyc.opcodes.Opcode function in pytype

To help you get started, weā€™ve selected a few pytype examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github google / pytype / pytype / pyc / opcodes.py View on Github external
class POP_BLOCK(Opcode):
  FLAGS = POPS_BLOCK
  __slots__ = ()


class END_FINALLY(Opcode):
  FLAGS = HAS_JUNKNOWN  # might re-raise an exception
  __slots__ = ()


class BUILD_CLASS(Opcode):
  __slots__ = ()


class POP_EXCEPT(Opcode):
  __slots__ = ()


class STORE_NAME(OpcodeWithArg):  # Indexes into name list
  FLAGS = HAS_NAME|HAS_ARGUMENT
  __slots__ = ()


class DELETE_NAME(OpcodeWithArg):  # Indexes into name list
  FLAGS = HAS_NAME|HAS_ARGUMENT
  __slots__ = ()


class UNPACK_SEQUENCE(OpcodeWithArg):  # Arg: Number of tuple items
  FLAGS = HAS_ARGUMENT
  __slots__ = ()
github google / pytype / pytype / pyc / opcodes.py View on Github external
__slots__ = ()


class GET_ANEXT(Opcode):
  __slots__ = ()


class BEFORE_ASYNC_WITH(Opcode):
  __slots__ = ()


class STORE_MAP(Opcode):
  __slots__ = ()


class INPLACE_ADD(Opcode):
  __slots__ = ()


class INPLACE_SUBTRACT(Opcode):
  __slots__ = ()


class INPLACE_MULTIPLY(Opcode):
  __slots__ = ()


class INPLACE_DIVIDE(Opcode):
  __slots__ = ()


class INPLACE_MODULO(Opcode):
github google / pytype / pytype / pyc / opcodes.py View on Github external
__slots__ = ()


class INPLACE_POWER(Opcode):
  __slots__ = ()


class GET_ITER(Opcode):
  __slots__ = ()


class GET_YIELD_FROM_ITER(Opcode):
  __slots__ = ()


class STORE_LOCALS(Opcode):
  __slots__ = ()


class PRINT_EXPR(Opcode):
  __slots__ = ()


class PRINT_ITEM(Opcode):
  __slots__ = ()


class PRINT_NEWLINE(Opcode):
  __slots__ = ()


class PRINT_ITEM_TO(Opcode):
github google / pytype / pytype / pyc / opcodes.py View on Github external
__slots__ = ()


class DELETE_SLICE_2(Opcode):
  __slots__ = ()


class DELETE_SLICE_3(Opcode):
  __slots__ = ()


class GET_AITER(Opcode):
  __slots__ = ()


class GET_ANEXT(Opcode):
  __slots__ = ()


class BEFORE_ASYNC_WITH(Opcode):
  __slots__ = ()


class STORE_MAP(Opcode):
  __slots__ = ()


class INPLACE_ADD(Opcode):
  __slots__ = ()


class INPLACE_SUBTRACT(Opcode):
github google / pytype / pytype / pyc / opcodes.py View on Github external
__slots__ = ()


class SLICE_2(Opcode):
  __slots__ = ()


class SLICE_3(Opcode):
  __slots__ = ()


class STORE_SLICE_0(Opcode):
  __slots__ = ()


class STORE_SLICE_1(Opcode):
  __slots__ = ()


class STORE_SLICE_2(Opcode):
  __slots__ = ()


class STORE_SLICE_3(Opcode):
  __slots__ = ()


class DELETE_SLICE_0(Opcode):
  __slots__ = ()


class DELETE_SLICE_1(Opcode):
github google / pytype / pytype / pyc / opcodes.py View on Github external
__slots__ = ()


class STORE_SLICE_0(Opcode):
  __slots__ = ()


class STORE_SLICE_1(Opcode):
  __slots__ = ()


class STORE_SLICE_2(Opcode):
  __slots__ = ()


class STORE_SLICE_3(Opcode):
  __slots__ = ()


class DELETE_SLICE_0(Opcode):
  __slots__ = ()


class DELETE_SLICE_1(Opcode):
  __slots__ = ()


class DELETE_SLICE_2(Opcode):
  __slots__ = ()


class DELETE_SLICE_3(Opcode):
github google / pytype / pytype / pyc / opcodes.py View on Github external
__slots__ = ()


class BINARY_XOR(Opcode):
  __slots__ = ()


class BINARY_OR(Opcode):
  __slots__ = ()


class INPLACE_POWER(Opcode):
  __slots__ = ()


class GET_ITER(Opcode):
  __slots__ = ()


class GET_YIELD_FROM_ITER(Opcode):
  __slots__ = ()


class STORE_LOCALS(Opcode):
  __slots__ = ()


class PRINT_EXPR(Opcode):
  __slots__ = ()


class PRINT_ITEM(Opcode):
github google / pytype / pytype / pyc / opcodes.py View on Github external
__slots__ = ()


class BINARY_SUBTRACT(Opcode):
  __slots__ = ()


class BINARY_SUBSCR(Opcode):
  __slots__ = ()


class BINARY_FLOOR_DIVIDE(Opcode):
  __slots__ = ()


class BINARY_TRUE_DIVIDE(Opcode):
  __slots__ = ()


class INPLACE_FLOOR_DIVIDE(Opcode):
  __slots__ = ()


class INPLACE_TRUE_DIVIDE(Opcode):
  __slots__ = ()


class SLICE_0(Opcode):
  __slots__ = ()


class SLICE_1(Opcode):
github google / pytype / pytype / pyc / opcodes.py View on Github external
__slots__ = ()


class BINARY_FLOOR_DIVIDE(Opcode):
  __slots__ = ()


class BINARY_TRUE_DIVIDE(Opcode):
  __slots__ = ()


class INPLACE_FLOOR_DIVIDE(Opcode):
  __slots__ = ()


class INPLACE_TRUE_DIVIDE(Opcode):
  __slots__ = ()


class SLICE_0(Opcode):
  __slots__ = ()


class SLICE_1(Opcode):
  __slots__ = ()


class SLICE_2(Opcode):
  __slots__ = ()


class SLICE_3(Opcode):
github google / pytype / pytype / pyc / opcodes.py View on Github external
__slots__ = ()


class UNARY_INVERT(Opcode):
  __slots__ = ()


class BINARY_MATRIX_MULTIPLY(Opcode):
  __slots__ = ()


class INPLACE_MATRIX_MULTIPLY(Opcode):
  __slots__ = ()


class BINARY_POWER(Opcode):
  __slots__ = ()


class BINARY_MULTIPLY(Opcode):
  __slots__ = ()


class BINARY_DIVIDE(Opcode):
  __slots__ = ()


class BINARY_MODULO(Opcode):
  __slots__ = ()


class BINARY_ADD(Opcode):