import opcode


def _Opname(code):
    """Returns opcode.opname[code] or <unknown ###> for unknown opcodes."""
    if code < len(opcode.opname):
        return opcode.opname[code]
    else:
        return "<unknown %s>" % code