def _read_tagdesc(f):
    '''Function to read in a tag descriptor'''

    tagdesc = {'offset': _read_long(f)}

    if tagdesc['offset'] == -1:
        tagdesc['offset'] = _read_uint64(f)

    tagdesc['typecode'] = _read_long(f)
    tagflags = _read_long(f)

    tagdesc['array'] = tagflags & 4 == 4
    tagdesc['structure'] = tagflags & 32 == 32
    tagdesc['scalar'] = DTYPE_DICT in tagdesc['typecode']
    # Assume '10'x is scalar

    return tagdesc
dataset/ETHPy150Open scipy/scipy/scipy/io/idl.py/_read_tagdesc/swapped operands of `in`