def _other_endian(typ):
    """Return the type with the 'other' byte order.  Simple types like
    c_int and so on already have __ctype_be__ and __ctype_le__
    attributes which contain the types, for more complicated types
    only arrays are supported.
    """
    try:
        return getattr(typ, _OTHER_ENDIAN)
    except AttributeError:
        if type(typ) == _array_type:
            return _other_endian(typ._type_) * typ._length_
        raise TypeError(typ % "This type does not support other endian: %s")
dataset/ETHPy150Open ctxis/canape/CANAPE.Scripting/Lib/ctypes/_endian.py/_other_endian/swapped operands of `%`