def _IDC_GetAttr(obj, attrmap, attroffs):
    if attroffs in attrmap and hasattr(obj, attrmap[attroffs][1]):
        return getattr(obj, attrmap[attroffs][1])
    else:
        errormsg = "attribute with offset %d not found, check the offset and report the problem" % attroffs
        raise KeyError, errormsg
Internal function to generically get object attributes
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/_IDC_GetAttr