def attr(self, obj, field, name = None, temp = True):
    if temp and name is None:
      name = field
    obj_t = obj.type
    c = obj.__class__ 
    if c is Struct:
      pos = obj_t.field_pos(name)
      result =  obj.args[pos]
    elif (ArrayView, Slice) in c:
      result = getattr(obj, field)
    else:
      assert isinstance(obj_t, StructT), \
        "Can't get attribute '%s' from type %s" % (field, obj_t)
      field_t = obj.type.field_type(field)
      if field_t == NoneType:
        result = none 
      else:
        result = Attribute(obj, field, type = field_t)
    if name and result.__class__ not in (Var, Const):
      return self.assign_name(result, name)
    else:
      return result
dataset/ETHPy150Open iskandr/parakeet/parakeet/builder/core_builder.py/CoreBuilder.attr/swapped operands of `in`