def words_to_int(words):
    """
    :param words: A list or tuple containing integer octets.

    :return: An unsigned integer that is equivalent to value represented
        by word (octet) sequence.
    """
    if not valid_words(words):
        raise ValueError('%r is not a valid octet list for an IPv4 address!' % words)
    return _struct.unpack('>I', _struct.pack('4B', *words))[0]
dataset/ETHPy150Open drkjam/netaddr/netaddr/strategy/ipv4.py/words_to_int/original