def unify_object_attrs(u, v, s, attrs):
    return unify([getattr(u, a) for a in attrs],
                 [getattr(v, a) for a in attrs],
                 s)


# Registration
Unify only certain attributes of two Python objects
dataset/ETHPy150Open logpy/logpy/logpy/unifymore.py/unify_object_attrs