def hasvar(obj, var):
  if hasattr(obj, var):
    return not callable(getattr(obj, var))
  return False
Checks if object, obj has a variable var
dataset/ETHPy150Open nikcub/floyd/floyd/util/object.py/hasvar